aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-cov/SourceCoverageView.cpp
diff options
context:
space:
mode:
authorYing Yi <maggieyi666@gmail.com>2016-08-30 07:01:37 +0000
committerYing Yi <maggieyi666@gmail.com>2016-08-30 07:01:37 +0000
commit76eb219c9bd0bf7f248cfa90c2f5255068fb6c43 (patch)
treef0cc25f3cf8afe557b4113c0b8f6d058f428f4e8 /llvm/tools/llvm-cov/SourceCoverageView.cpp
parent80a9579db9a9d0646de4aaf2bc2b2304ca4c3277 (diff)
downloadllvm-76eb219c9bd0bf7f248cfa90c2f5255068fb6c43.zip
llvm-76eb219c9bd0bf7f248cfa90c2f5255068fb6c43.tar.gz
llvm-76eb219c9bd0bf7f248cfa90c2f5255068fb6c43.tar.bz2
[llvm-cov] Use the native path in the coverage report.
The coverage reports contain the source or binary file paths. On Windows, the file path might contain the seperators of both '/' and '\'. This patch uses the native path in the coverage reports. For example, on Windows, all '/' are converted to '\'. Differential Revision: https://reviews.llvm.org/D23922 llvm-svn: 280061
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageView.cpp')
-rw-r--r--llvm/tools/llvm-cov/SourceCoverageView.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/llvm-cov/SourceCoverageView.cpp b/llvm/tools/llvm-cov/SourceCoverageView.cpp
index 23f725f..b61d791 100644
--- a/llvm/tools/llvm-cov/SourceCoverageView.cpp
+++ b/llvm/tools/llvm-cov/SourceCoverageView.cpp
@@ -46,6 +46,7 @@ std::string CoveragePrinter::getOutputPath(StringRef Path, StringRef Extension,
auto PathFilename = (sys::path::filename(Path) + "." + Extension).str();
sys::path::append(FullPath, PathFilename);
+ sys::path::native(FullPath);
return FullPath.str();
}