[llvm] [llvm-dwarfdump] Added --output-style option for controlling output format (PR #216559)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 02:33:39 PDT 2026
================
@@ -0,0 +1,23 @@
+## Show that --output-style=LLVM (the default) dumps normally.
+# RUN: yaml2obj %s -o %t.o
+# RUN: llvm-dwarfdump --output-style=LLVM %t.o | FileCheck %s --check-prefix=LLVM
----------------
jh7370 wrote:
We probably want a case that shows that the default is LLVM output. The best way to do this is to pipe the output of llvm-dwarfdump with the option and without to two files and then use diff or cmp to compare the output as another check (you can see plenty of examples of this in other tools tests which check short versus long aliases for an option, for example).
https://github.com/llvm/llvm-project/pull/216559
More information about the llvm-commits
mailing list