[llvm-cov] Use the native path in the coverage report.
authorYing Yi <maggieyi666@gmail.com>
Tue, 30 Aug 2016 07:01:37 +0000 (07:01 +0000)
committerYing Yi <maggieyi666@gmail.com>
Tue, 30 Aug 2016 07:01:37 +0000 (07:01 +0000)
commit76eb219c9bd0bf7f248cfa90c2f5255068fb6c43
treef0cc25f3cf8afe557b4113c0b8f6d058f428f4e8
parent80a9579db9a9d0646de4aaf2bc2b2304ca4c3277
[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/test/tools/llvm-cov/Inputs/native_separators.covmapping [new file with mode: 0644]
llvm/test/tools/llvm-cov/double_dots.c
llvm/test/tools/llvm-cov/native_separators.c [new file with mode: 0644]
llvm/tools/llvm-cov/CodeCoverage.cpp
llvm/tools/llvm-cov/SourceCoverageView.cpp
llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp