DebugInfo: Implement DW_AT_stmt_list for type units
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 14 Feb 2014 23:58:13 +0000 (23:58 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 14 Feb 2014 23:58:13 +0000 (23:58 +0000)
commit60e6386b876c6cffc7dcf1db173cb9feeca9cded
tree126fbfd32da1540ad88bcb977b320cb158530615
parentdfade747f00d67766c24cb7ba7bcea31f403c4f9
DebugInfo: Implement DW_AT_stmt_list for type units

Type units will share the statement list of their defining compile unit.
This is a tradeoff that reduces .o debug info size at the cost of some
linked debug info size (since the contents of those string tables won't
be deduplicated along with the type unit) which seems right for now.

llvm-svn: 201445
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
llvm/test/DebugInfo/X86/generate-odr-hash.ll