summaryrefslogtreecommitdiff
path: root/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
commitfe80f1da404d25f93e4a2492b127554a882bd5bb (patch)
treea4c54f057d1619c6cf825248f6b9c9d6ae70aa3e /lib/DebugInfo/DWARFCompileUnit.cpp
parent10ec65004d8da411ab59a1fee85c0ff54539776a (diff)
downloadllvm-fe80f1da404d25f93e4a2492b127554a882bd5bb.tar.gz
llvm-fe80f1da404d25f93e4a2492b127554a882bd5bb.tar.bz2
llvm-fe80f1da404d25f93e4a2492b127554a882bd5bb.tar.xz
DWARF: Print line tables per compile unit, so they get the right address size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139808 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFCompileUnit.cpp')
-rw-r--r--lib/DebugInfo/DWARFCompileUnit.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/DebugInfo/DWARFCompileUnit.cpp b/lib/DebugInfo/DWARFCompileUnit.cpp
index d535df05d3..24bf97ff60 100644
--- a/lib/DebugInfo/DWARFCompileUnit.cpp
+++ b/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() {