[llvm] [llvm-objdump] Support --mcpu=help/--mattr=help without -d (PR #165661)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 12 01:18:49 PST 2025
================
@@ -20,23 +20,39 @@
## We report an error when we can't infer the triple because we don't have --triple or an input object (including a.out).
# RUN: not llvm-objdump --mattr=help 2>&1 \
-# RUN: | FileCheck %s --check-prefix=CHECK-ERROR --implicit-check-not=error: -DMSG=%errc_ENOENT
+# RUN: | FileCheck %s --check-prefix=CHECK-MISSING-ERROR --implicit-check-not=error: -DMSG=%errc_ENOENT
# RUN: not llvm-objdump --mcpu=help 2>&1 \
-# RUN: | FileCheck %s --check-prefix=CHECK-ERROR --implicit-check-not=error: -DMSG=%errc_ENOENT
+# RUN: | FileCheck %s --check-prefix=CHECK-MISSING-ERROR --implicit-check-not=error: -DMSG=%errc_ENOENT
+
+# RUN: yaml2obj --docnum=2 %s -o %t.minidump
+## We report an error when the binary file cannot be convert to a recognized object.
----------------
jh7370 wrote:
```suggestion
## We report an error when the binary file isn't an object file format.
```
https://github.com/llvm/llvm-project/pull/165661
More information about the llvm-commits
mailing list