Skip to content

Commit 800e5e4

Browse files
committed
Change deprecated to unsupported.
1 parent a676232 commit 800e5e4

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

llvm/lib/Object/ELF.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -835,10 +835,7 @@ decodeBBAddrMapImpl(const ELFFile<ELFT> &EF,
835835
Version = Data.getU8(Cur);
836836
if (!Cur)
837837
break;
838-
if (Version < 2)
839-
return createError("deprecated SHT_LLVM_BB_ADDR_MAP version: " +
840-
Twine(static_cast<int>(Version)));
841-
if (Version > 3)
838+
if (Version < 2 || Version > 3)
842839
return createError("unsupported SHT_LLVM_BB_ADDR_MAP version: " +
843840
Twine(static_cast<int>(Version)));
844841
Feature = Data.getU8(Cur); // Feature byte

llvm/unittests/Object/ELFObjectFileTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ TEST(ELFObjectFileTest, InvalidDecodePGOAnalysisMap) {
915915
{
916916
SCOPED_TRACE("unsupported version");
917917
DoCheck(UnsupportedLowVersionYamlString,
918-
"deprecated SHT_LLVM_BB_ADDR_MAP version: 1");
918+
"unsupported SHT_LLVM_BB_ADDR_MAP version: 1");
919919
}
920920

921921
// Check that we fail when function entry count is enabled but not provided.

0 commit comments

Comments
 (0)