DebugInfo: Move line table zero-directory-index (compilation dir) handling into MCDwarf
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 17 Mar 2014 23:29:40 +0000 (23:29 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 17 Mar 2014 23:29:40 +0000 (23:29 +0000)
commit2879a6caa8d1146946e5c5287d3ff905a2da66bd
treeb6a61d60cf26eecdbcee9a07543bddb611c9a2d7
parent9f44c113bdde54e75b8e521da01f5c62492eeb1c
DebugInfo: Move line table zero-directory-index (compilation dir) handling into MCDwarf

Our handling of compilation directory in DwarfDebug was broken
(incorrectly using the 'last' compilation directory (that of the last
CU in the metadata list) for all function emission in any CU). By moving
this handling down into MCDwarf the issue is fixed as the compilation
dir is tracked correctly per line table.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204089 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCContext.h
include/llvm/MC/MCDwarf.h
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/MC/MCDwarf.cpp
test/DebugInfo/lto-comp-dir.ll [new file with mode: 0644]