[llvm] [Object] Extract format-agnostic BBAddrMap decoder (PR #188435)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 2 00:52:15 PDT 2026


================
@@ -555,8 +555,7 @@ TEST(ELFObjectFileTest, InvalidDecodeBBAddrMap) {
   {
     SCOPED_TRACE("zero bb ranges");
     DoCheck(ZeroBBRangesYamlString,
-            "invalid zero number of BB ranges at offset 3 in "
-            "SHT_LLVM_BB_ADDR_MAP section with index 1");
+            "invalid zero number of BB ranges at offset 3");
----------------
jh7370 wrote:

Yes, it's quite easy to compose a warning with each higher level adding any relevant context (e.g. in this case, the section that was being decoded). We quite often concatenate these pieces in llvm-readelf and llvm-objdump with colon separators, for example.

(I'm okay if the text changes to facilitate this, if we don't lose the extra context)

https://github.com/llvm/llvm-project/pull/188435


More information about the llvm-commits mailing list