diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-03-08 02:58:37 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-03-08 02:58:37 +0000 |
commit | 1ddcf35b68a4c326c548272134611ce54b1afd25 (patch) | |
tree | 5c79b73f645fbb8507ff0e2b94a4ff2018213836 /lib/CodeGen/AsmPrinter/DIE.h | |
parent | 6fec233a1e4b26be2f69e02884d4f3c2a2c4a437 (diff) | |
download | llvm-1ddcf35b68a4c326c548272134611ce54b1afd25.tar.gz llvm-1ddcf35b68a4c326c548272134611ce54b1afd25.tar.bz2 llvm-1ddcf35b68a4c326c548272134611ce54b1afd25.tar.xz |
Revert r97917, which was causing Clang Debug self-host failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97932 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DIE.h')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DIE.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIE.h b/lib/CodeGen/AsmPrinter/DIE.h index 21f5d629e1..af90289e5f 100644 --- a/lib/CodeGen/AsmPrinter/DIE.h +++ b/lib/CodeGen/AsmPrinter/DIE.h @@ -112,6 +112,7 @@ namespace llvm { //===--------------------------------------------------------------------===// /// DIE - A structured debug information entry. Has an abbreviation which /// describes it's organization. + class CompileUnit; class DIEValue; class DIE { @@ -158,6 +159,7 @@ namespace llvm { void setTag(unsigned Tag) { Abbrev.setTag(Tag); } void setOffset(unsigned O) { Offset = O; } void setSize(unsigned S) { Size = S; } + void setParent(DIE *P) { Parent = P; } /// addValue - Add a value and attributes to a DIE. /// @@ -183,7 +185,7 @@ namespace llvm { } Abbrev.setChildrenFlag(dwarf::DW_CHILDREN_yes); Children.push_back(Child); - Child->Parent = this; + Child->setParent(this); } #ifndef NDEBUG |