[llvm] Add --offoading option to llvm-readobj (PR #143342)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 12 01:56:08 PDT 2025


================
@@ -230,4 +232,15 @@ void ObjDumper::printSectionsAsHex(const object::ObjectFile &Obj,
   }
 }
 
+void ObjDumper::printOffloading(const object::ObjectFile &Obj) {
+
+  SmallVector<llvm::object::OffloadBundleFatBin> Bundles;
+  if (Error Err = object::extractOffloadBundleFatBinary(Obj, Bundles))
+    reportWarning(std::move(Err), Obj.getFileName());
----------------
jh7370 wrote:

I'd still like to see a test that shows this warning is printed when expected.

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


More information about the llvm-commits mailing list