aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELFObjectFile.cpp
diff options
context:
space:
mode:
authorRahman Lavaee <rahmanl@google.com>2025-07-02 10:31:52 -0700
committerGitHub <noreply@github.com>2025-07-02 10:31:52 -0700
commit6b623a6622707ea47d84ab0069f766215a6fec44 (patch)
tree46f36c2080a22c6d2d30d0990b8b8acf8124c68c /llvm/lib/Object/ELFObjectFile.cpp
parentcbfc10260cfeab7ede763bffad4c71d9ae20abd2 (diff)
downloadllvm-6b623a6622707ea47d84ab0069f766215a6fec44.zip
llvm-6b623a6622707ea47d84ab0069f766215a6fec44.tar.gz
llvm-6b623a6622707ea47d84ab0069f766215a6fec44.tar.bz2
[SHT_LLVM_BB_ADDR_MAP] Remove support for versions 1 and 0 (SHT_LLVM_BB_ADDR_MAP_V0). (#146186)
Version 2 was added more than two years ago (https://github.com/llvm/llvm-project/commit/6015a045d768feab3bae9ad9c0c81e118df8b04a). So it should be safe to deprecate older versions.
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
-rw-r--r--llvm/lib/Object/ELFObjectFile.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Object/ELFObjectFile.cpp b/llvm/lib/Object/ELFObjectFile.cpp
index cce5c74..0e13d32 100644
--- a/llvm/lib/Object/ELFObjectFile.cpp
+++ b/llvm/lib/Object/ELFObjectFile.cpp
@@ -904,8 +904,7 @@ Expected<std::vector<BBAddrMap>> static readBBAddrMapImpl(
const auto &Sections = cantFail(EF.sections());
auto IsMatch = [&](const Elf_Shdr &Sec) -> Expected<bool> {
- if (Sec.sh_type != ELF::SHT_LLVM_BB_ADDR_MAP &&
- Sec.sh_type != ELF::SHT_LLVM_BB_ADDR_MAP_V0)
+ if (Sec.sh_type != ELF::SHT_LLVM_BB_ADDR_MAP)
return false;
if (!TextSectionIndex)
return true;