From 6b623a6622707ea47d84ab0069f766215a6fec44 Mon Sep 17 00:00:00 2001 From: Rahman Lavaee Date: Wed, 2 Jul 2025 10:31:52 -0700 Subject: [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. --- llvm/lib/Object/ELFObjectFile.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/Object/ELFObjectFile.cpp') 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> static readBBAddrMapImpl( const auto &Sections = cantFail(EF.sections()); auto IsMatch = [&](const Elf_Shdr &Sec) -> Expected { - 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; -- cgit v1.1