Reinstate DW_AT_comp_dir support after D55519.
authorAdrian Prantl <aprantl@apple.com>
Thu, 13 Dec 2018 17:53:29 +0000 (17:53 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 13 Dec 2018 17:53:29 +0000 (17:53 +0000)
commit046d100b4107ee6c9b8fe68e111dcf108cb18bdd
treec58dc384deddaaa80100bec9e9225e3a2551ce0e
parent8b325fc706d5f837e673b4b5807d2f952fd58795
Reinstate DW_AT_comp_dir support after D55519.

The DIFile used by the CU is special and distinct from the main source
file. Its directory part specifies what becomes the DW_AT_comp_dir
(the compilation directory), even if the source file was specified
with an absolute path.

To support the .dwo workflow, a valid DW_AT_comp_dir is necessary even
if source files were specified with an absolute path.

llvm-svn: 349065
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGen/debug-info-abspath.c