[llvm] 0058272 - [NFC] Remove unused test code from ELFObjectFileTest.cpp

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 16 11:27:28 PDT 2025


Author: Rahman Lavaee
Date: 2025-06-16T11:27:25-07:00
New Revision: 00582728767599bb0e88beb96e8264dbe676da53

URL: https://github.com/llvm/llvm-project/commit/00582728767599bb0e88beb96e8264dbe676da53
DIFF: https://github.com/llvm/llvm-project/commit/00582728767599bb0e88beb96e8264dbe676da53.diff

LOG: [NFC] Remove unused test code from ELFObjectFileTest.cpp

Added: 
    

Modified: 
    llvm/unittests/Object/ELFObjectFileTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Object/ELFObjectFileTest.cpp b/llvm/unittests/Object/ELFObjectFileTest.cpp
index 493e673d6a07d..1073df95c379a 100644
--- a/llvm/unittests/Object/ELFObjectFileTest.cpp
+++ b/llvm/unittests/Object/ELFObjectFileTest.cpp
@@ -896,17 +896,6 @@ TEST(ELFObjectFileTest, InvalidDecodePGOAnalysisMap) {
             "are enabled: version = 1 feature = 4");
   }
 
-  SmallString<128> CommonVersionedYamlString(CommonYamlString);
-  CommonVersionedYamlString += R"(
-      - Version: 2
-        BBRanges:
-          - BBEntries:
-              - ID:            1
-                AddressOffset: 0x0
-                Size:          0x1
-                Metadata:      0x2
-)";
-
   // Check that we fail when function entry count is enabled but not provided.
   SmallString<128> MissingFuncEntryCount(CommonYamlString);
   MissingFuncEntryCount += R"(


        


More information about the llvm-commits mailing list