summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2016-12-01 21:59:09 +0000
committerDavid Blaikie <dblaikie@gmail.com>2016-12-01 21:59:09 +0000
commite40caaee99a9a34030f33fe5548f22b26d02db8b (patch)
tree216cdc8ec125190194d06a0b4abcffd547dc2028 /llvm/lib/CodeGen
parent76b913c470327fbc1a95cd5fc98b78b0f6980695 (diff)
downloadbcm5719-llvm-e40caaee99a9a34030f33fe5548f22b26d02db8b.tar.gz
bcm5719-llvm-e40caaee99a9a34030f33fe5548f22b26d02db8b.zip
[debug info] Minor cleanup from D27170/r288399
llvm-svn: 288421
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DIE.cpp2
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h2
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
index ef1e41f4e3d..06023fcc51b 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
@@ -202,7 +202,7 @@ DIEUnit::DIEUnit(uint16_t V, uint8_t A, dwarf::Tag UnitTag)
: Die(UnitTag), Section(nullptr), Offset(0), Length(0), Version(V),
AddrSize(A)
{
- Die.setUnit(this);
+ Die.Owner = this;
assert((UnitTag == dwarf::DW_TAG_compile_unit ||
UnitTag == dwarf::DW_TAG_type_unit ||
UnitTag == dwarf::DW_TAG_partial_unit) && "expected a unit TAG");
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
index b1f818bfd67..9412e50884e 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
@@ -194,7 +194,7 @@ public:
void emitHeader(bool UseOffsets) override;
MCSymbol *getLabelBegin() const {
- assert(Section);
+ assert(getSection());
return LabelBegin;
}
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
index 6d045eabe44..f365930b603 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
@@ -112,7 +112,7 @@ public:
const DICompileUnit *getCUNode() const { return CUNode; }
/// Return true if this compile unit has something to write out.
- bool hasContent() const { return Die.hasChildren(); }
+ bool hasContent() const { return getUnitDie().hasChildren(); }
/// Get string containing language specific context for a global name.
///
OpenPOWER on IntegriCloud