[Object] Internalize readBBAddrMapImpl

This commit is contained in:
Fangrui Song 2022-11-23 17:46:59 -08:00
parent 9969ceb36b
commit 12ebfca621

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());