From 6dda032003306ab5fd383676979a59a3a98d6d12 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 15 Sep 2011 18:02:20 +0000 Subject: DWARF: Print line tables per compile unit, so they get the right address size. llvm-svn: 139808 --- llvm/lib/DebugInfo/DWARFCompileUnit.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'llvm/lib/DebugInfo/DWARFCompileUnit.h') diff --git a/llvm/lib/DebugInfo/DWARFCompileUnit.h b/llvm/lib/DebugInfo/DWARFCompileUnit.h index 378b6ced8cf..d9167292a9d 100644 --- a/llvm/lib/DebugInfo/DWARFCompileUnit.h +++ b/llvm/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. -- cgit v1.2.3