[llvm-commits] CVS: llvm/lib/System/Win32/Path.inc
Reid Spencer
reid at x10sys.com
Mon Jun 5 08:45:11 PDT 2006
Changes in directory llvm/lib/System/Win32:
Path.inc updated: 1.42 -> 1.43
---
Log message:
For PR798: http://llvm.cs.uiuc.edu/PR798 :
Add support for Graphviz. Patch contributed by Anton Korobeynikov.
---
Diffs of the changes: (+8 -7)
Path.inc | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
Index: llvm/lib/System/Win32/Path.inc
diff -u llvm/lib/System/Win32/Path.inc:1.42 llvm/lib/System/Win32/Path.inc:1.43
--- llvm/lib/System/Win32/Path.inc:1.42 Sat May 6 21:51:51 2006
+++ llvm/lib/System/Win32/Path.inc Mon Jun 5 10:44:46 2006
@@ -222,8 +222,9 @@
BOOL rc = GetFileAttributesEx(path.c_str(), GetFileExInfoStandard, &fi);
if (rc)
return !(fi.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY);
- else if (GetLastError() != ERROR_NOT_FOUND)
- ThrowError(std::string(path) + ": Can't get status: ");
+ else if (GetLastError() != ERROR_FILE_NOT_FOUND) {
+ ThrowError("isFile(): " + std::string(path) + ": Can't get status: ");
+ }
return false;
}
@@ -233,8 +234,8 @@
BOOL rc = GetFileAttributesEx(path.c_str(), GetFileExInfoStandard, &fi);
if (rc)
return fi.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY;
- else if (GetLastError() != ERROR_NOT_FOUND)
- ThrowError(std::string(path) + ": Can't get status: ");
+ else if (GetLastError() != ERROR_FILE_NOT_FOUND)
+ ThrowError("isDirectory(): " + std::string(path) + ": Can't get status: ");
return false;
}
@@ -244,8 +245,8 @@
BOOL rc = GetFileAttributesEx(path.c_str(), GetFileExInfoStandard, &fi);
if (rc)
return fi.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN;
- else if (GetLastError() != ERROR_NOT_FOUND)
- ThrowError(std::string(path) + ": Can't get status: ");
+ else if (GetLastError() != ERROR_FILE_NOT_FOUND)
+ ThrowError("isHidden(): " + std::string(path) + ": Can't get status: ");
return false;
}
@@ -336,7 +337,7 @@
Path::getStatusInfo(StatusInfo& info) const {
WIN32_FILE_ATTRIBUTE_DATA fi;
if (!GetFileAttributesEx(path.c_str(), GetFileExInfoStandard, &fi))
- ThrowError(std::string(path) + ": Can't get status: ");
+ ThrowError("getStatusInfo():" + std::string(path) + ": Can't get status: ");
info.fileSize = fi.nFileSizeHigh;
info.fileSize <<= 32;
More information about the llvm-commits
mailing list