summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFDebugInfoEntry.h
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.h
parent97095d68a6734602a5930fcd412e0bc082e672b1 (diff)
downloadbcm5719-llvm-1b2a65ca3a7fe00b503bf56ae613d084f45b12ab.tar.gz
bcm5719-llvm-1b2a65ca3a7fe00b503bf56ae613d084f45b12ab.zip
DebugInfo: Don't print DIEs multiple times.
llvm-svn: 139671
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFDebugInfoEntry.h')
-rw-r--r--llvm/lib/DebugInfo/DWARFDebugInfoEntry.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/DWARFDebugInfoEntry.h b/llvm/lib/DebugInfo/DWARFDebugInfoEntry.h
index 0b0a00cf4f1..5e7b89b5a6e 100644
--- a/llvm/lib/DebugInfo/DWARFDebugInfoEntry.h
+++ b/llvm/lib/DebugInfo/DWARFDebugInfoEntry.h
@@ -33,6 +33,9 @@ class DWARFDebugInfoEntryMinimal {
const DWARFAbbreviationDeclaration *AbbrevDecl;
public:
+ DWARFDebugInfoEntryMinimal()
+ : Offset(0), ParentIdx(0), SiblingIdx(0), AbbrevDecl(0) {}
+
void dump(raw_ostream &OS, const DWARFCompileUnit *cu,
unsigned recurseDepth, unsigned indent = 0) const;
void dumpAttribute(raw_ostream &OS, const DWARFCompileUnit *cu,
OpenPOWER on IntegriCloud