summaryrefslogtreecommitdiff
path: root/lib/DebugInfo/DWARFContext.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-09-15 20:43:22 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-09-15 20:43:22 +0000
commit101b1c5ff16dffd45d03746d92c024740f72ecc6 (patch)
treece0a3736eabcea8dd244494e4b2ac13b4c03d420 /lib/DebugInfo/DWARFContext.h
parentc26ed9b47ff77ca6244feda9e3837b49624605db (diff)
downloadllvm-101b1c5ff16dffd45d03746d92c024740f72ecc6.tar.gz
llvm-101b1c5ff16dffd45d03746d92c024740f72ecc6.tar.bz2
llvm-101b1c5ff16dffd45d03746d92c024740f72ecc6.tar.xz
DWARF: Put all the pieces we have together and provide a single accessor to DIContext that provides line information when given an address.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139836 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFContext.h')
-rw-r--r--lib/DebugInfo/DWARFContext.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/DebugInfo/DWARFContext.h b/lib/DebugInfo/DWARFContext.h
index 687e5facfe..746a4639f2 100644
--- a/lib/DebugInfo/DWARFContext.h
+++ b/lib/DebugInfo/DWARFContext.h
@@ -53,6 +53,9 @@ public:
return &CUs[index];
}
+ /// Return the compile unit that includes an offset (relative to .debug_info).
+ DWARFCompileUnit *getCompileUnitForOffset(uint32_t offset);
+
/// Get a pointer to the parsed DebugAbbrev object.
const DWARFDebugAbbrev *getDebugAbbrev();
@@ -63,6 +66,8 @@ public:
const DWARFDebugLine::LineTable *
getLineTableForCompileUnit(DWARFCompileUnit *cu);
+ virtual DILineInfo getLineInfoForAddress(uint64_t address);
+
bool isLittleEndian() const { return IsLittleEndian; }
virtual StringRef getInfoSection() = 0;