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

Reid Spencer reid at x10sys.com
Wed Aug 23 00:31:09 PDT 2006



Changes in directory llvm/include/llvm/System:

Path.h updated: 1.39 -> 1.40
---
Log message:

For PR797: http://llvm.org/PR797 :
Eliminate exception throwing from Path::renamePathOnDisk and adjust its 
users correspondingly.


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

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


Index: llvm/include/llvm/System/Path.h
diff -u llvm/include/llvm/System/Path.h:1.39 llvm/include/llvm/System/Path.h:1.40
--- llvm/include/llvm/System/Path.h:1.39	Wed Aug 23 01:56:27 2006
+++ llvm/include/llvm/System/Path.h	Wed Aug 23 02:30:48 2006
@@ -492,10 +492,9 @@
       /// This method renames the file referenced by \p this as \p newName. The
       /// file referenced by \p this must exist. The file referenced by
       /// \p newName does not need to exist.
-      /// @returns true
-      /// @throws std::string if there is an file system error.
+      /// @returns true on error, false otherwise
       /// @brief Rename one file as another.
-      bool renamePathOnDisk(const Path& newName);
+      bool renamePathOnDisk(const Path& newName, std::string* ErrMsg);
 
       /// This method attempts to destroy the file or directory named by the
       /// last component of the Path. If the Path refers to a directory and the






More information about the llvm-commits mailing list