diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-23 03:11:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-23 03:11:38 +0000 |
commit | ca2bf0b67a10f2be5c2f4f244b475ed6d6669a05 (patch) | |
tree | 44e6da380a7829969971701ad2089f36afac75cf /llvm | |
parent | a1b5ca2b9dbf1cf1934220d36353af02ae91d3cd (diff) | |
download | bcm5719-llvm-ca2bf0b67a10f2be5c2f4f244b475ed6d6669a05.tar.gz bcm5719-llvm-ca2bf0b67a10f2be5c2f4f244b475ed6d6669a05.zip |
New method.
llvm-svn: 19765
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/Support/FileUtilities.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/FileUtilities.h b/llvm/include/llvm/Support/FileUtilities.h index 7e5d40500d6..86d82a14fd9 100644 --- a/llvm/include/llvm/Support/FileUtilities.h +++ b/llvm/include/llvm/Support/FileUtilities.h @@ -28,6 +28,19 @@ namespace llvm { bool DiffFiles(const std::string &FileA, const std::string &FileB, std::string *Error = 0); +/// DiffFilesWithTolerance - Compare the two files specified, returning 0 if the +/// files match, 1 if they are different, and 2 if there is a file error. This +/// function differs from DiffFiles in that you can specify an absolete and +/// relative FP error that is allowed to exist. If you specify a string to fill +/// in for the error option, it will set the string to an error message if an +/// error occurs, allowing the caller to distinguish between a failed diff and a +/// file system error. +/// +int DiffFilesWithTolerance(const std::string &FileA, const std::string &FileB, + double AbsTol, double RelTol, + std::string *Error = 0); + + /// MoveFileOverIfUpdated - If the file specified by New is different than Old, /// or if Old does not exist, move the New file over the Old file. Otherwise, /// remove the New file. |