From 12ebfca621059bf6423a8ea0fcf6225dfe8018eb Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 23 Nov 2022 17:46:59 -0800 Subject: [PATCH] [Object] Internalize readBBAddrMapImpl --- llvm/lib/Object/ELFObjectFile.cpp | 5 ++--- 1 file 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 -Expected> -readBBAddrMapImpl(const ELFFile &EF, - Optional TextSectionIndex) { +Expected> static readBBAddrMapImpl( + const ELFFile &EF, Optional TextSectionIndex) { using Elf_Shdr = typename ELFT::Shdr; std::vector BBAddrMaps; const auto &Sections = cantFail(EF.sections()); -- 2.7.4