For PR797:
[oota-llvm.git] / include / llvm / System / Path.h
index 55eb3e6c75553685aa6ac3c7ea457c8b1212ca35..77a5cc54e3b1df0fc0f1636c01c15776a610eaf5 100644 (file)
@@ -414,7 +414,7 @@ namespace sys {
       /// 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 @@ namespace sys {
 
   /// 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);