diff options
author | Eric Christopher <echristo@gmail.com> | 2013-01-07 19:32:41 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-01-07 19:32:41 +0000 |
commit | dd8e9f395e881972b320d947de88102a0be04b70 (patch) | |
tree | 21842f103965e21cb354a45a98cc813c108576b8 /lib/DebugInfo/DWARFContext.h | |
parent | 5b7f9216c357f1cdf507f300f396b44cb982eb3f (diff) |
Add support for separating strings for the split debug info DWARF5
proposal. This leaves the strings in the skeleton die as strp,
but in all dwo files they're accessed now via DW_FORM_GNU_str_index.
Add support for dumping these sections and modify the fission-cu.ll
testcase to have the correct strings and form. Fix a small bug
in the fixed form sizes routine that involved out of array accesses
for the table and add a FIXME in the extractFast routine to fix
this up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171779 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 0c3eb30a64..c6d6283f53 100644 --- a/lib/DebugInfo/DWARFContext.h +++ b/lib/DebugInfo/DWARFContext.h @@ -106,6 +106,7 @@ public: virtual StringRef getInfoDWOSection() = 0; virtual StringRef getAbbrevDWOSection() = 0; virtual StringRef getStringDWOSection() = 0; + virtual StringRef getStringOffsetDWOSection() = 0; virtual StringRef getRangeDWOSection() = 0; virtual const RelocAddrMap &infoDWORelocMap() const = 0; @@ -140,6 +141,7 @@ class DWARFContextInMemory : public DWARFContext { StringRef InfoDWOSection; StringRef AbbrevDWOSection; StringRef StringDWOSection; + StringRef StringOffsetDWOSection; StringRef RangeDWOSection; public: @@ -157,6 +159,9 @@ public: virtual StringRef getInfoDWOSection() { return InfoDWOSection; } virtual StringRef getAbbrevDWOSection() { return AbbrevDWOSection; } virtual StringRef getStringDWOSection() { return StringDWOSection; } + virtual StringRef getStringOffsetDWOSection() { + return StringOffsetDWOSection; + } virtual StringRef getRangeDWOSection() { return RangeDWOSection; } virtual const RelocAddrMap &infoDWORelocMap() const { return InfoDWORelocMap; } }; |