DebugInfo: Use the comp_dir of the referencing type units when building debug_line.dwo
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 19 Mar 2014 00:11:28 +0000 (00:11 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 19 Mar 2014 00:11:28 +0000 (00:11 +0000)
commit56ce2f5ab83a2975970eeadfc1b61f96b4c50c22
treeadc71b1a51c4e96b707b84636bef9c605e90ff0b
parent21354ec60d0dde4f1995d816701b895c57f806bd
DebugInfo: Use the comp_dir of the referencing type units when building debug_line.dwo

This isn't a complete fix - it falls back to non-comp_dir when multiple
compile units are in play. Adding a map of comp_dir to table is part of
the more general solution, but I gave up (in the short term) when I
realized I'd also have to calculate the size of each type unit so as to
produce correct DW_AT_stmt_list attributes.

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