diff options
author | Fangrui Song <i@maskray.me> | 2022-11-23 17:46:59 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-11-23 17:47:00 -0800 |
commit | 12ebfca621059bf6423a8ea0fcf6225dfe8018eb (patch) | |
tree | 963f22ae911b5ce64d0ad8a91a7616476d3ea1df /llvm/lib/Object/ELFObjectFile.cpp | |
parent | 9969ceb36b440eaafa17c486f29a69c7a7da3b3b (diff) | |
download | llvm-12ebfca621059bf6423a8ea0fcf6225dfe8018eb.zip llvm-12ebfca621059bf6423a8ea0fcf6225dfe8018eb.tar.gz llvm-12ebfca621059bf6423a8ea0fcf6225dfe8018eb.tar.bz2 |
[Object] Internalize readBBAddrMapImpl
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/ELFObjectFile.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Object/ELFObjectFile.cpp b/llvm/lib/Object/ELFObjectFile.cpp index 9417f46..7a88b59 100644 --- a/llvm/lib/Object/ELFObjectFile.cpp +++ b/llvm/lib/Object/ELFObjectFile.cpp @@ -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()); |