diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-13 20:41:00 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-13 20:41:00 +0000 |
commit | bbf97ea7d5832922b3c40b67701b5719bfcb772b (patch) | |
tree | bac0ca0984b4856214c7cefa9cd59eb951e88bdc /lib | |
parent | 675e0ac0bfd6fb78423d9fbee9f50c1dec62c111 (diff) | |
download | external_llvm-bbf97ea7d5832922b3c40b67701b5719bfcb772b.zip external_llvm-bbf97ea7d5832922b3c40b67701b5719bfcb772b.tar.gz external_llvm-bbf97ea7d5832922b3c40b67701b5719bfcb772b.tar.bz2 |
Don't use PathV1.h in FileUtilities.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183941 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Support/FileUtilities.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Support/FileUtilities.cpp b/lib/Support/FileUtilities.cpp index 4d7b239..f13c04b 100644 --- a/lib/Support/FileUtilities.cpp +++ b/lib/Support/FileUtilities.cpp @@ -17,6 +17,7 @@ #include "llvm/ADT/SmallString.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Path.h" +#include "llvm/Support/PathV1.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Support/system_error.h" #include <cctype> @@ -171,10 +172,13 @@ static bool CompareNumbers(const char *&F1P, const char *&F2P, /// error occurs, allowing the caller to distinguish between a failed diff and a /// file system error. /// -int llvm::DiffFilesWithTolerance(const sys::PathWithStatus &FileA, - const sys::PathWithStatus &FileB, +int llvm::DiffFilesWithTolerance(StringRef NameA, + StringRef NameB, double AbsTol, double RelTol, std::string *Error) { + sys::PathWithStatus FileA(NameA); + sys::PathWithStatus FileB(NameB); + const sys::FileStatus *FileAStat = FileA.getFileStatus(false, Error); if (!FileAStat) return 2; |