[PATCH] D105139: [llvm-cov] Allow multiple remaps in --path-equivalence

Tomas Camin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 14 12:27:08 PDT 2021


tcamin updated this revision to Diff 366445.

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105139/new/

https://reviews.llvm.org/D105139

Files:
  llvm/tools/llvm-cov/CodeCoverage.cpp


Index: llvm/tools/llvm-cov/CodeCoverage.cpp
===================================================================
--- llvm/tools/llvm-cov/CodeCoverage.cpp
+++ llvm/tools/llvm-cov/CodeCoverage.cpp
@@ -487,7 +487,7 @@
 
     // Create a mapping from coverage data file paths to local paths.
     for (StringRef Filename : Coverage.getUniqueSourceFiles()) {
-      if (!RemappedFilenames[Filename].empty())
+      if (RemappedFilenames.count(Filename) == 1)
         continue;
 
       SmallString<128> NativeFilename;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105139.366445.patch
Type: text/x-patch
Size: 514 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210814/197b40a2/attachment.bin>


More information about the llvm-commits mailing list