summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFCompileUnit.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-09-15 18:02:20 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-09-15 18:02:20 +0000
commit6dda032003306ab5fd383676979a59a3a98d6d12 (patch)
treeea12bb8290a8c301eb2a60b22351af5cf6ca0299 /llvm/lib/DebugInfo/DWARFCompileUnit.cpp
parentebdf32f9076074fe373a4bf47c332b9bf08f6405 (diff)
downloadbcm5719-llvm-6dda032003306ab5fd383676979a59a3a98d6d12.tar.gz
bcm5719-llvm-6dda032003306ab5fd383676979a59a3a98d6d12.zip
DWARF: Print line tables per compile unit, so they get the right address size.
llvm-svn: 139808
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFCompileUnit.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARFCompileUnit.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARFCompileUnit.cpp b/llvm/lib/DebugInfo/DWARFCompileUnit.cpp
index d535df05d3b..24bf97ff608 100644
--- a/llvm/lib/DebugInfo/DWARFCompileUnit.cpp
+++ b/llvm/lib/DebugInfo/DWARFCompileUnit.cpp
@@ -94,8 +94,7 @@ void DWARFCompileUnit::dump(raw_ostream &OS) {
<< " (next CU at " << format("0x%08x", getNextCompileUnitOffset())
<< ")\n";
- extractDIEsIfNeeded(false);
- DieArray[0].dump(OS, this, -1U);
+ getCompileUnitDIE(false)->dump(OS, this, -1U);
}
void DWARFCompileUnit::setDIERelations() {
OpenPOWER on IntegriCloud