File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1726,7 +1726,7 @@ void CoverageMappingModuleGen::emit() {
1726
1726
llvm::SmallVector<std::string, 16 > FilenameStrs;
1727
1727
FilenameStrs.resize (FileEntries.size () + 1 );
1728
1728
// The first filename is the current working directory.
1729
- FilenameStrs[0 ] = getCurrentDirname ();
1729
+ FilenameStrs[0 ] = normalizeFilename ( getCurrentDirname () );
1730
1730
for (const auto &Entry : FileEntries) {
1731
1731
auto I = Entry.second ;
1732
1732
FilenameStrs[I] = normalizeFilename (Entry.first ->getName ());
Original file line number Diff line number Diff line change 16
16
// RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -emit-llvm -mllvm -enable-name-compression=false -main-file-name profile-prefix-map.c %t/root/nested/profile-prefix-map.c -fprofile-prefix-map=%/t/root=. -o - | FileCheck --check-prefix=PROFILE-PREFIX-MAP %s
17
17
// RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -emit-llvm -mllvm -enable-name-compression=false -main-file-name profile-prefix-map.c ../root/nested/profile-prefix-map.c -fprofile-prefix-map=../root=. -o - | FileCheck --check-prefix=PROFILE-PREFIX-MAP %s
18
18
// PROFILE-PREFIX-MAP: @__llvm_coverage_mapping = {{.*"\\02.*}}.{{/|\\+}}nested{{.*profile-prefix-map\.c}}
19
+
20
+ // RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -emit-llvm -mllvm -enable-name-compression=false -main-file-name profile-prefix-map.c %t/root/nested/profile-prefix-map.c -fprofile-compilation-dir=/custom -fprofile-prefix-map=/custom=/nonsense -o - | FileCheck --check-prefix=PROFILE-COMPILATION-DIR %s
21
+ // PROFILE-COMPILATION-DIR: @__llvm_coverage_mapping = {{.*"\\02.*}}nonsense
You can’t perform that action at this time.
0 commit comments