[llvm] 12ebfca - [Object] Internalize readBBAddrMapImpl
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 23 17:47:04 PST 2022
Author: Fangrui Song
Date: 2022-11-23T17:47:00-08:00
New Revision: 12ebfca621059bf6423a8ea0fcf6225dfe8018eb
URL: https://github.com/llvm/llvm-project/commit/12ebfca621059bf6423a8ea0fcf6225dfe8018eb
DIFF: https://github.com/llvm/llvm-project/commit/12ebfca621059bf6423a8ea0fcf6225dfe8018eb.diff
LOG: [Object] Internalize readBBAddrMapImpl
Added:
Modified:
llvm/lib/Object/ELFObjectFile.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Object/ELFObjectFile.cpp b/llvm/lib/Object/ELFObjectFile.cpp
index 9417f46f44dc3..7a88b5976c1c5 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());
More information about the llvm-commits
mailing list