[llvm] [llvm][dwarfdump] Add --child-tags option to filter by DWARF tags (PR #165720)

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 30 15:11:20 PDT 2025


================
@@ -202,6 +202,8 @@ struct DIDumpOptions {
   bool ShowAddresses = true;
   bool ShowChildren = false;
   bool ShowParents = false;
+  /// List of DWARF tags to filter children by.
+  llvm::SmallVector<unsigned> ChildTagsFilter;
----------------
adrian-prantl wrote:

Given that this is going to be empty most of the time, maybe just use a vector or a SmallVector<0 or 1>?

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


More information about the llvm-commits mailing list