[PATCH] D62359: [dwarfdump] Make recursion affect the parent chain
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 23 19:17:49 PDT 2019
aprantl accepted this revision.
aprantl added a comment.
This revision is now accepted and ready to land.
Thanks!
================
Comment at: llvm/lib/DebugInfo/DWARF/DWARFDie.cpp:559
return Indent;
- Indent = dumpParentChain(Die.getParent(), OS, Indent, DumpOpts);
+ if (DumpOpts.RecurseDepth > 0 && Depth >= DumpOpts.RecurseDepth)
+ return Indent;
----------------
`if (DumpOpts.RecurseDepth && Depth >= DumpOpts.RecurseDepth)`
================
Comment at: llvm/lib/DebugInfo/DWARF/DWARFDie.cpp:562
+ Depth += 1;
+ Indent = dumpParentChain(Die.getParent(), OS, Indent, DumpOpts, Depth);
Die.dump(OS, Indent, DumpOpts);
----------------
`Depth + 1`?
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62359/new/
https://reviews.llvm.org/D62359
More information about the llvm-commits
mailing list