diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-15 18:02:20 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-15 18:02:20 +0000 |
commit | fe80f1da404d25f93e4a2492b127554a882bd5bb (patch) | |
tree | a4c54f057d1619c6cf825248f6b9c9d6ae70aa3e /lib/DebugInfo/DWARFCompileUnit.h | |
parent | 10ec65004d8da411ab59a1fee85c0ff54539776a (diff) | |
download | external_llvm-fe80f1da404d25f93e4a2492b127554a882bd5bb.tar.gz external_llvm-fe80f1da404d25f93e4a2492b127554a882bd5bb.tar.bz2 external_llvm-fe80f1da404d25f93e4a2492b127554a882bd5bb.zip |
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.h')
-rw-r--r-- | lib/DebugInfo/DWARFCompileUnit.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/DebugInfo/DWARFCompileUnit.h b/lib/DebugInfo/DWARFCompileUnit.h index 378b6ced8c..d9167292a9 100644 --- a/lib/DebugInfo/DWARFCompileUnit.h +++ b/lib/DebugInfo/DWARFCompileUnit.h @@ -70,6 +70,14 @@ public: BaseAddr = base_addr; } + const DWARFDebugInfoEntryMinimal * + getCompileUnitDIE(bool extract_cu_die_only = true) { + extractDIEsIfNeeded(extract_cu_die_only); + if (DieArray.empty()) + return NULL; + return &DieArray[0]; + } + /// setDIERelations - We read in all of the DIE entries into our flat list /// of DIE entries and now we need to go back through all of them and set the /// parent, sibling and child pointers for quick DIE navigation. |