DebugInfo: Move type units into the debug_types section with appropriate comdat group...
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 13 Dec 2013 21:33:40 +0000 (21:33 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 13 Dec 2013 21:33:40 +0000 (21:33 +0000)
commit5c9e0e52dab3095291771fba1e63c287d298361b
tree33b807c6ec2399b3203d50a8552e906de800550a
parent46f829ee25ed0cba401cd759da684d3c4aa1478a
DebugInfo: Move type units into the debug_types section with appropriate comdat grouping and type unit headers

This commit does not complete the type units feature - there are issues
around fission support (skeletal type units, pubtypes/pubnames) and
hashing of some types including those containing references to types in
other type units.

Originally committed as r197073 and reverted in r197079.
Recommitted as r197197 to reproduce the failure and reverted as r197199

Turns out there was unstable ordering in the type unit dumping code.
Fixed by using MapVector in DWARFContext to store the debug_types
comdat sections.

Recommitted as r197210 with a fix to dumping and reverted as r197211
because I was a bit gun shy and thought I saw a failure that turned out
to be unrelated.

So here we go - once more with feeling! \o/

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197275 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCObjectFileInfo.h
include/llvm/MC/MCSectionELF.h
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
lib/CodeGen/AsmPrinter/DwarfUnit.h
lib/DebugInfo/DWARFContext.cpp
lib/DebugInfo/DWARFContext.h
lib/MC/MCObjectFileInfo.cpp
test/DebugInfo/X86/c-type-units.ll
test/DebugInfo/X86/generate-odr-hash.ll