DebugInfo: Partial implementation of DWARF type units.
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 19 Nov 2013 23:08:21 +0000 (23:08 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 19 Nov 2013 23:08:21 +0000 (23:08 +0000)
commit6fe6dc19f80c78ebb06a4585fa16648189d70369
tree23cec0003fe1274bc26c972ab1e2152107da3585
parentd4010998b0f3f7ec8322dfa8dd2daded15b17f75
DebugInfo: Partial implementation of DWARF type units.

Emit DW_TAG_type_units into the debug_info section using compile unit
headers. This is bogus/unusable by debuggers, but testable and provides
more isolated review.

Subsequent patches will include support for type unit headers and
emission into the debug_types section, as well as comdat grouping the
types based on their hash. Also the CompileUnit type will be renamed
'Unit' and relevant portions pulled out into respective CompileUnit and
TypeUnit types.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195166 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DIE.cpp
lib/CodeGen/AsmPrinter/DIE.h
lib/CodeGen/AsmPrinter/DIEHash.cpp
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h
test/DebugInfo/X86/generate-odr-hash.ll