diff options
author | Ying Yi <maggieyi666@gmail.com> | 2016-08-30 07:01:37 +0000 |
---|---|---|
committer | Ying Yi <maggieyi666@gmail.com> | 2016-08-30 07:01:37 +0000 |
commit | 76eb219c9bd0bf7f248cfa90c2f5255068fb6c43 (patch) | |
tree | f0cc25f3cf8afe557b4113c0b8f6d058f428f4e8 /llvm/tools/llvm-cov/CodeCoverage.cpp | |
parent | 80a9579db9a9d0646de4aaf2bc2b2304ca4c3277 (diff) | |
download | bcm5719-llvm-76eb219c9bd0bf7f248cfa90c2f5255068fb6c43.tar.gz bcm5719-llvm-76eb219c9bd0bf7f248cfa90c2f5255068fb6c43.zip |
[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/CodeCoverage.cpp')
-rw-r--r-- | llvm/tools/llvm-cov/CodeCoverage.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/llvm-cov/CodeCoverage.cpp b/llvm/tools/llvm-cov/CodeCoverage.cpp index 019f18a5457..00c547063bc 100644 --- a/llvm/tools/llvm-cov/CodeCoverage.cpp +++ b/llvm/tools/llvm-cov/CodeCoverage.cpp @@ -468,6 +468,7 @@ int CodeCoverageTool::run(Command Cmd, int argc, const char **argv) { error(EC.message(), this->ObjectFilename); return 1; } + sys::path::native(ObjectFilePath); ViewOpts.ObjectFilename = ObjectFilePath.c_str(); switch (ViewOpts.Format) { case CoverageViewOptions::OutputFormat::Text: |