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)
commitf6777964bde28c349d3e289ea37ecf5f5eeedbc4
treec5b1c50f5e004f83f1975a74c11ea126c5ac4e42
parentb577efe4567f1f6a711ad36e1d17280dd1c4f009
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

llvm-svn: 374266
clang/lib/CodeGen/CoverageMappingGen.cpp
clang/lib/CodeGen/CoverageMappingGen.h
clang/test/CoverageMapping/debug-dir.cpp [new file with mode: 0644]