[clang] [llvm] [llvm][tools] Extend llvm-objdump to support nested OffloadBinaries (PR #185425)

Alex Duran via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 24 02:46:39 PDT 2026


================
@@ -1,7 +1,10 @@
-## Test that llvm-objdump can display nested OffloadBinary images.
+## Test that llvm-objdump will display an error for incorrect nested OffloadBinary images.
 
-# RUN: yaml2obj %s -o %t.bin
-# RUN: llvm-objdump --offloading %t.bin 2>&1 | FileCheck -DFILENAME=%t.bin %s
+# Before the error the root image is displayed which is currently 7 lines.
+
+# RUN: yaml2obj %s -o %t.bin 
+# RUN: llvm-objdump --offloading %t.bin 2> %t.err | count 7
----------------
adurang wrote:

Sounds good! Done.

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


More information about the llvm-commits mailing list