diff options
author | Eric Christopher <echristo@gmail.com> | 2013-01-15 23:56:56 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-01-15 23:56:56 +0000 |
commit | 72f7bfbf0e02bb11d3e7cca1f9598c5f9d9fa2ca (patch) | |
tree | ac0756254ac88cc3469f7274306ce15cab7f8a19 /lib/DebugInfo/DWARFContext.h | |
parent | af50dda4102114b23ac7d8c2db4703f22e02f02c (diff) | |
download | llvm-72f7bfbf0e02bb11d3e7cca1f9598c5f9d9fa2ca.tar.gz llvm-72f7bfbf0e02bb11d3e7cca1f9598c5f9d9fa2ca.tar.bz2 llvm-72f7bfbf0e02bb11d3e7cca1f9598c5f9d9fa2ca.tar.xz |
Split address information for DWARF5 split dwarf proposal. This involves
using the DW_FORM_GNU_addr_index and a separate .debug_addr section which
stays in the executable and is fully linked.
Sneak in two other small changes:
a) Print out the debug_str_offsets.dwo section.
b) Change form we're expecting the entries in the debug_str_offsets.dwo
section to take from ULEB128 to U32.
Add tests for all of this in the fission-cu.ll test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172578 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFContext.h')
-rw-r--r-- | lib/DebugInfo/DWARFContext.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/DebugInfo/DWARFContext.h b/lib/DebugInfo/DWARFContext.h index 687ff93b07..7da5c85cd3 100644 --- a/lib/DebugInfo/DWARFContext.h +++ b/lib/DebugInfo/DWARFContext.h @@ -108,6 +108,7 @@ public: virtual StringRef getStringDWOSection() = 0; virtual StringRef getStringOffsetDWOSection() = 0; virtual StringRef getRangeDWOSection() = 0; + virtual StringRef getAddrSection() = 0; virtual const RelocAddrMap &infoDWORelocMap() const = 0; static bool isSupportedVersion(unsigned version) { @@ -143,6 +144,7 @@ class DWARFContextInMemory : public DWARFContext { StringRef StringDWOSection; StringRef StringOffsetDWOSection; StringRef RangeDWOSection; + StringRef AddrSection; public: DWARFContextInMemory(object::ObjectFile *); @@ -163,6 +165,9 @@ public: return StringOffsetDWOSection; } virtual StringRef getRangeDWOSection() { return RangeDWOSection; } + virtual StringRef getAddrSection() { + return AddrSection; + } virtual const RelocAddrMap &infoDWORelocMap() const { return InfoDWORelocMap; } |