[llvm] [llvm][dwarfdump] Add --child-tags option to filter by DWARF tags (PR #165720)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 4 01:03:46 PST 2025
================
@@ -0,0 +1,127 @@
+# Tests the --filter-child-tag (-t) option.
+# RUN: yaml2obj %s -o %t.o
+# RUN: llvm-dwarfdump %t.o --filter-child-tag=DW_TAG_structure_type | FileCheck %s --check-prefix=ONLY_STRUCT
----------------
jh7370 wrote:
I would find it easier to follow the test if you did something like:
```
# RUN: ... | FileCheck --check-prefix=APREFIX
# APREFIX: ...
# RUN: ... | FileCheck --check-prefix=ANOTHER_PREFIX
# ANOTHER_PREFIX: ...
# RUN: llvm-dwarfdump %t.o --option --option \
# RUN: --option --option | \
# RUN: FileCheck --check-prefix=LONG_PREFIX
```
etc.
You should also break up your longer lines over multiple lines using `\` as the line continuation character (see last example).
https://github.com/llvm/llvm-project/pull/165720
More information about the llvm-commits
mailing list