[Object] Internalize readBBAddrMapImpl

This commit is contained in:
Fangrui Song committed 2022-11-23 17:47:00 -08:00
1 parent 9969ceb36b
commit 12ebfca621
1 file changed
+2 -3
+2 -3
View 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());