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)
commit4b45137a4fede81a1c2d3a930e78b61965f9b36f
treebe4b52fc27c0ac59ecf9c9d97986bb41c4a19a91
parentff1677e9c5b9464de62950eb974d728e139a7d30
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.

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