projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9969ceb
)
[Object] Internalize readBBAddrMapImpl
author
Fangrui Song
<i@maskray.me>
Thu, 24 Nov 2022 01:46:59 +0000
(17:46 -0800)
committer
Fangrui Song
<i@maskray.me>
Thu, 24 Nov 2022 01:47:00 +0000
(17:47 -0800)
llvm/lib/Object/ELFObjectFile.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Object/ELFObjectFile.cpp
b/llvm/lib/Object/ELFObjectFile.cpp
index
9417f46
..
7a88b59
100644
(file)
--- 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());