[llvm-commits] CVS: llvm/lib/System/Unix/Path.inc

Chris Lattner lattner at cs.uiuc.edu
Fri Jul 28 15:36:34 PDT 2006



Changes in directory llvm/lib/System/Unix:

Path.inc updated: 1.47 -> 1.48
---
Log message:

Modify setStatusInfoOnDisk to not throw an exception.


---
Diffs of the changes:  (+4 -4)

 Path.inc |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/System/Unix/Path.inc
diff -u llvm/lib/System/Unix/Path.inc:1.47 llvm/lib/System/Unix/Path.inc:1.48
--- llvm/lib/System/Unix/Path.inc:1.47	Fri Jul 28 17:29:50 2006
+++ llvm/lib/System/Unix/Path.inc	Fri Jul 28 17:36:17 2006
@@ -647,15 +647,15 @@
 }
 
 bool
-Path::setStatusInfoOnDisk(const FileStatus &si) const {
+Path::setStatusInfoOnDisk(const FileStatus &si, std::string *ErrStr) const {
   struct utimbuf utb;
   utb.actime = si.modTime.toPosixTime();
   utb.modtime = utb.actime;
   if (0 != ::utime(path.c_str(),&utb))
-    ThrowErrno(path + ": can't set file modification time");
+    return GetErrno(path + ": can't set file modification time", ErrStr);
   if (0 != ::chmod(path.c_str(),si.mode))
-    ThrowErrno(path + ": can't set mode");
-  return true;
+    return GetErrno(path + ": can't set mode", ErrStr);
+  return false;
 }
 
 void 






More information about the llvm-commits mailing list