Changes in directory llvm/lib/System/Win32:
Path.inc updated: 1.52 -> 1.53 --- Log message: For PR797: http://llvm.org/PR797 : Adjust code to compensate for Path class interface change. --- Diffs of the changes: (+10 -5) Path.inc | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) Index: llvm/lib/System/Win32/Path.inc diff -u llvm/lib/System/Win32/Path.inc:1.52 llvm/lib/System/Win32/Path.inc:1.53 --- llvm/lib/System/Win32/Path.inc:1.52 Tue Aug 22 17:46:39 2006 +++ llvm/lib/System/Win32/Path.inc Tue Aug 22 18:54:35 2006 @@ -326,11 +326,12 @@ return true; } -void Path::makeReadableOnDisk() { +bool Path::makeReadableOnDisk(std::string* ErrMsg) { // All files are readable on Windows (ignoring security attributes). + return false; } -void Path::makeWriteableOnDisk() { +void Path::makeWriteableOnDisk(std::string* ErrMsg) { DWORD attr = GetFileAttributes(path.c_str()); // If it doesn't exist, we're done. @@ -338,13 +339,17 @@ return; if (attr & FILE_ATTRIBUTE_READONLY) { - if (!SetFileAttributes(path.c_str(), attr & ~FILE_ATTRIBUTE_READONLY)) - ThrowError(std::string(path) + ": Can't make file writable: "); + if (!SetFileAttributes(path.c_str(), attr & ~FILE_ATTRIBUTE_READONLY)) { + MakeErrMsg(ErrMsg, std::string(path) + ": Can't make file writable: "); + return true; + } } + return false; } -void Path::makeExecutableOnDisk() { +bool Path::makeExecutableOnDisk(std::string* ErrMsg) { // All files are executable on Windows (ignoring security attributes). + return false; } bool _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits