summaryrefslogtreecommitdiff
path: root/lib/DebugInfo/DWARFContext.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-09-14 01:09:52 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-09-14 01:09:52 +0000
commit358f4fd9ee078b3c79597fc688855fb48bc1f356 (patch)
treeb8af6f225d18bd09d8c1a67e4a7bfed76175aefd /lib/DebugInfo/DWARFContext.h
parent836623420dbf5eb3a3facde2841179ded91ab55b (diff)
downloadllvm-358f4fd9ee078b3c79597fc688855fb48bc1f356.tar.gz
llvm-358f4fd9ee078b3c79597fc688855fb48bc1f356.tar.bz2
llvm-358f4fd9ee078b3c79597fc688855fb48bc1f356.tar.xz
DWARF: Port support for parsing .debug_aranges section from LLDB and wire it up to llvm-dwarfdump.
This is only one half of it, the part that caches address ranges from the DIEs when .debug_aranges is not available will be ported soon. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139680 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFContext.h')
-rw-r--r--lib/DebugInfo/DWARFContext.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/DebugInfo/DWARFContext.h b/lib/DebugInfo/DWARFContext.h
index 1a70f3feef..3eca9524b5 100644
--- a/lib/DebugInfo/DWARFContext.h
+++ b/lib/DebugInfo/DWARFContext.h
@@ -11,14 +11,13 @@
#define LLVM_DEBUGINFO_DWARFCONTEXT_H
#include "DWARFCompileUnit.h"
+#include "DWARFDebugAranges.h"
#include "llvm/DebugInfo/DIContext.h"
#include "llvm/ADT/OwningPtr.h"
#include "llvm/ADT/SmallVector.h"
namespace llvm {
-class DWARFDebugAbbrev;
-
/// DWARFContext
/// This data structure is the top level entity that deals with dwarf debug
/// information parsing. The actual data is supplied through pure virtual
@@ -28,6 +27,7 @@ class DWARFContext : public DIContext {
SmallVector<DWARFCompileUnit, 1> CUs;
OwningPtr<DWARFDebugAbbrev> Abbrev;
+ OwningPtr<DWARFDebugAranges> Aranges;
DWARFContext(DWARFContext &); // = delete
DWARFContext &operator=(DWARFContext &); // = delete
@@ -54,6 +54,9 @@ public:
/// Get a pointer to the parsed DebugAbbrev object.
const DWARFDebugAbbrev *getDebugAbbrev();
+ /// Get a pointer to the parsed DebugAranges object.
+ const DWARFDebugAranges *getDebugAranges();
+
bool isLittleEndian() const { return IsLittleEndian; }
virtual StringRef getInfoSection() = 0;