]> granicus.if.org Git - clang/commit
Use -fdebug-compilation-dir to form absolute paths in coverage mappings
authorReid Kleckner <rnk@google.com>
Thu, 10 Oct 2019 00:54:33 +0000 (00:54 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 10 Oct 2019 00:54:33 +0000 (00:54 +0000)
commitb527d8eb2fa6f56701ef4195170a7c4b37f31ec4
tree2eb60e26eb3c9d85087ef3d93c3288aaeb781016
parente619d987e2081639eb24647634f72bab001100de
Use -fdebug-compilation-dir to form absolute paths in coverage mappings

This allows users to explicitly request relative paths with
`-fdebug-compilation-dir .`.

Fixes PR43614

Reviewers: vsk, arphaman

Differential Revision: https://reviews.llvm.org/D68733

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374266 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CoverageMappingGen.cpp
lib/CodeGen/CoverageMappingGen.h
test/CoverageMapping/debug-dir.cpp [new file with mode: 0644]