diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-14 00:15:32 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-14 00:15:32 +0000 |
commit | 15ec085c40cf45726a5c8925706795b52fd231bd (patch) | |
tree | cf9e8078e18b77db9652ef418c7e8929525d9bff /lib/DebugInfo/DWARFDebugInfoEntry.cpp | |
parent | e640a228f6b1ff280d35a6a33bf78c7e544f9926 (diff) |
DebugInfo: Don't print DIEs multiple times.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139671 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFDebugInfoEntry.cpp')
-rw-r--r-- | lib/DebugInfo/DWARFDebugInfoEntry.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/DebugInfo/DWARFDebugInfoEntry.cpp b/lib/DebugInfo/DWARFDebugInfoEntry.cpp index bfe89dd326..6923f6cce4 100644 --- a/lib/DebugInfo/DWARFDebugInfoEntry.cpp +++ b/lib/DebugInfo/DWARFDebugInfoEntry.cpp @@ -45,12 +45,10 @@ void DWARFDebugInfoEntryMinimal::dump(raw_ostream &OS, const DWARFDebugInfoEntryMinimal *child = getFirstChild(); if (recurseDepth > 0 && child) { - indent += 2; while (child) { - child->dump(OS, cu, recurseDepth-1, indent); + child->dump(OS, cu, recurseDepth-1, indent+2); child = child->getSibling(); } - indent -= 2; } } else { OS << "Abbreviation code not found in 'debug_abbrev' class for code: " |