[Object] Internalize readBBAddrMapImpl
authorFangrui Song <i@maskray.me>
Thu, 24 Nov 2022 01:46:59 +0000 (17:46 -0800)
committerFangrui Song <i@maskray.me>
Thu, 24 Nov 2022 01:47:00 +0000 (17:47 -0800)
llvm/lib/Object/ELFObjectFile.cpp

index 9417f46..7a88b59 100644 (file)
@@ -673,9 +673,8 @@ ELFObjectFileBase::getPltAddresses() const {
 }
 
 template <class ELFT>
-Expected<std::vector<BBAddrMap>>
-readBBAddrMapImpl(const ELFFile<ELFT> &EF,
-                  Optional<unsigned> TextSectionIndex) {
+Expected<std::vector<BBAddrMap>> static readBBAddrMapImpl(
+    const ELFFile<ELFT> &EF, Optional<unsigned> TextSectionIndex) {
   using Elf_Shdr = typename ELFT::Shdr;
   std::vector<BBAddrMap> BBAddrMaps;
   const auto &Sections = cantFail(EF.sections());