aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELFObjectFile.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-11-23 17:46:59 -0800
committerFangrui Song <i@maskray.me>2022-11-23 17:47:00 -0800
commit12ebfca621059bf6423a8ea0fcf6225dfe8018eb (patch)
tree963f22ae911b5ce64d0ad8a91a7616476d3ea1df /llvm/lib/Object/ELFObjectFile.cpp
parent9969ceb36b440eaafa17c486f29a69c7a7da3b3b (diff)
downloadllvm-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.cpp5
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());