Add support for separating strings for the split debug info DWARF5
authorEric Christopher <echristo@gmail.com>
Mon, 7 Jan 2013 19:32:41 +0000 (19:32 +0000)
committerEric Christopher <echristo@gmail.com>
Mon, 7 Jan 2013 19:32:41 +0000 (19:32 +0000)
commitdd8e9f395e881972b320d947de88102a0be04b70
tree21842f103965e21cb354a45a98cc813c108576b8
parent5b7f9216c357f1cdf507f300f396b44cb982eb3f
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
12 files changed:
lib/CodeGen/AsmPrinter/DIE.cpp
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h
lib/DebugInfo/DWARFCompileUnit.h
lib/DebugInfo/DWARFContext.cpp
lib/DebugInfo/DWARFContext.h
lib/DebugInfo/DWARFDebugInfoEntry.cpp
lib/DebugInfo/DWARFFormValue.cpp
lib/DebugInfo/DWARFFormValue.h
test/DebugInfo/X86/fission-cu.ll