diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-09-11 23:20:48 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-09-11 23:20:48 +0000 |
commit | 3d7260e7b21b6630ac42e1838c582a84c57e8a95 (patch) | |
tree | b3eb4b31e0fd704f8f299d61584b8f7114b8e1b0 /llvm/tools/llvm-cov | |
parent | 75f1fd334c5eebae678a6f0a0bdef88c639455c7 (diff) | |
download | bcm5719-llvm-3d7260e7b21b6630ac42e1838c582a84c57e8a95.tar.gz bcm5719-llvm-3d7260e7b21b6630ac42e1838c582a84c57e8a95.zip |
Revert "llvm-cov: Remove an overly system specific test"
This fixes a call to sys::fs::equivalent that should've been to
CodeCoverageTool::equivalentFiles, which lets us restore the test of
r217476 that was removed in r217478.
This reverts r217478, but the test works this time.
llvm-svn: 217646
Diffstat (limited to 'llvm/tools/llvm-cov')
-rw-r--r-- | llvm/tools/llvm-cov/CodeCoverage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-cov/CodeCoverage.cpp b/llvm/tools/llvm-cov/CodeCoverage.cpp index 549af92f918..9330ea91ce9 100644 --- a/llvm/tools/llvm-cov/CodeCoverage.cpp +++ b/llvm/tools/llvm-cov/CodeCoverage.cpp @@ -177,7 +177,7 @@ CodeCoverageTool::getSourceFile(StringRef SourceFile) { SmallString<256> Path(SourceFile); sys::fs::make_absolute(Path); for (const auto &Files : LoadedSourceFiles) { - if (sys::fs::equivalent(Path.str(), Files.first)) { + if (equivalentFiles(Path.str(), Files.first)) { return *Files.second; } } |