[llvm-commits] CVS: llvm/include/llvm/System/Path.h

Reid Spencer reid at x10sys.com
Wed Aug 23 13:35:17 PDT 2006



Changes in directory llvm/include/llvm/System:

Path.h updated: 1.41 -> 1.42
---
Log message:

For PR797: http://llvm.org/PR797 :
Final removal of exceptions from lib/System and adjustment of users to
accommodate.


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

 Path.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/include/llvm/System/Path.h
diff -u llvm/include/llvm/System/Path.h:1.41 llvm/include/llvm/System/Path.h:1.42
--- llvm/include/llvm/System/Path.h:1.41	Wed Aug 23 12:43:20 2006
+++ llvm/include/llvm/System/Path.h	Wed Aug 23 15:34:57 2006
@@ -414,7 +414,7 @@
       /// already unique.
       /// @throws std::string if an unrecoverable error occurs.
       /// @brief Make the current path name unique in the file system.
-      void makeUnique( bool reuse_current = true );
+      bool makeUnique( bool reuse_current /*= true*/, std::string* ErrMsg );
 
     /// @}
     /// @name Disk Mutators
@@ -529,9 +529,9 @@
 
   /// This function can be used to copy the file specified by Src to the
   /// file specified by Dest. If an error occurs, Dest is removed.
-  /// @throws std::string if an error opening or writing the files occurs.
+  /// @returns true if an error occurs, false otherwise
   /// @brief Copy one file to another.
-  void CopyFile(const Path& Dest, const Path& Src);
+  bool CopyFile(const Path& Dest, const Path& Src, std::string* ErrMsg);
 }
 
 std::ostream& operator<<(std::ostream& strm, const sys::Path& aPath);






More information about the llvm-commits mailing list