From 76eb219c9bd0bf7f248cfa90c2f5255068fb6c43 Mon Sep 17 00:00:00 2001 From: Ying Yi Date: Tue, 30 Aug 2016 07:01:37 +0000 Subject: [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 --- llvm/tools/llvm-cov/SourceCoverageView.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/tools/llvm-cov/SourceCoverageView.cpp') 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(); } -- cgit v1.1