aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-09-14 00:15:32 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-09-14 00:15:32 +0000
commit1b2a65ca3a7fe00b503bf56ae613d084f45b12ab (patch)
tree46a80df4d55651a134f0950d88c5ce5dd389dfa3 /llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp
parent97095d68a6734602a5930fcd412e0bc082e672b1 (diff)
downloadllvm-1b2a65ca3a7fe00b503bf56ae613d084f45b12ab.zip
llvm-1b2a65ca3a7fe00b503bf56ae613d084f45b12ab.tar.gz
llvm-1b2a65ca3a7fe00b503bf56ae613d084f45b12ab.tar.bz2
DebugInfo: Don't print DIEs multiple times.
llvm-svn: 139671
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp b/llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp
index bfe89dd..6923f6c 100644
--- a/llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp
+++ b/llvm/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: "