diff --git a/llvm/lib/Object/ELFObjectFile.cpp b/llvm/lib/Object/ELFObjectFile.cpp index 9417f46f44dc..7a88b5976c1c 100644 --- a/llvm/lib/Object/ELFObjectFile.cpp +++ b/llvm/lib/Object/ELFObjectFile.cpp @@ -673,9 +673,8 @@ ELFObjectFileBase::getPltAddresses() const { } template -Expected> -readBBAddrMapImpl(const ELFFile &EF, - Optional TextSectionIndex) { +Expected> static readBBAddrMapImpl( + const ELFFile &EF, Optional TextSectionIndex) { using Elf_Shdr = typename ELFT::Shdr; std::vector BBAddrMaps; const auto &Sections = cantFail(EF.sections());