summaryrefslogtreecommitdiff
path: root/lib/DebugInfo
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-11-29 01:12:22 +0000
committerAdrian Prantl <aprantl@apple.com>2017-11-29 01:12:22 +0000
commitc97df2361b242a5f00ade73e1820f0cbc39ba99b (patch)
tree3b508a18cf2ea052c997019e8bd94027ca0a9038 /lib/DebugInfo
parent9516b8f45856c33fe9e95b8b1cad971a736c5fd6 (diff)
llvm-dwarfdump: honor the --show-children option when dumping a specific DIE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319271 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r--lib/DebugInfo/DWARF/DWARFDie.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/DebugInfo/DWARF/DWARFDie.cpp b/lib/DebugInfo/DWARF/DWARFDie.cpp
index c4bb2259244..1b8b46385af 100644
--- a/lib/DebugInfo/DWARF/DWARFDie.cpp
+++ b/lib/DebugInfo/DWARF/DWARFDie.cpp
@@ -488,7 +488,7 @@ void DWARFDie::dump(raw_ostream &OS, unsigned Indent,
}
DWARFDie child = getFirstChild();
- if (DumpOpts.RecurseDepth > 0 && child) {
+ if (DumpOpts.ShowChildren && DumpOpts.RecurseDepth > 0 && child) {
DumpOpts.RecurseDepth--;
while (child) {
child.dump(OS, Indent + 2, DumpOpts);