diff options
author | Petr Hosek <phosek@google.com> | 2021-02-18 15:01:05 -0800 |
---|---|---|
committer | Petr Hosek <phosek@google.com> | 2021-02-19 15:29:03 -0800 |
commit | 3275b18f8979ab750e3674f28e7f82c7ef37d2a3 (patch) | |
tree | 18acbd9d2e4bc672053f647129c1c418ebc304f6 /clang/lib/CodeGen/CoverageMappingGen.cpp | |
parent | 6c75a84ce76789d065b29e5966254e4943d7dba8 (diff) | |
download | llvm-3275b18f8979ab750e3674f28e7f82c7ef37d2a3.zip llvm-3275b18f8979ab750e3674f28e7f82c7ef37d2a3.tar.gz llvm-3275b18f8979ab750e3674f28e7f82c7ef37d2a3.tar.bz2 |
[Coverage] Normalize compilation dir as well
This matches debug info behavior.
Differential Revision: https://reviews.llvm.org/D97001
Diffstat (limited to 'clang/lib/CodeGen/CoverageMappingGen.cpp')
-rw-r--r-- | clang/lib/CodeGen/CoverageMappingGen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CoverageMappingGen.cpp b/clang/lib/CodeGen/CoverageMappingGen.cpp index 9c4cab3..e370be1 100644 --- a/clang/lib/CodeGen/CoverageMappingGen.cpp +++ b/clang/lib/CodeGen/CoverageMappingGen.cpp @@ -1726,7 +1726,7 @@ void CoverageMappingModuleGen::emit() { llvm::SmallVector<std::string, 16> FilenameStrs; FilenameStrs.resize(FileEntries.size() + 1); // The first filename is the current working directory. - FilenameStrs[0] = getCurrentDirname(); + FilenameStrs[0] = normalizeFilename(getCurrentDirname()); for (const auto &Entry : FileEntries) { auto I = Entry.second; FilenameStrs[I] = normalizeFilename(Entry.first->getName()); |