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

Chris Lattner lattner at cs.uiuc.edu
Fri Jul 28 15:30:12 PDT 2006



Changes in directory llvm/include/llvm/System:

Path.h updated: 1.32 -> 1.33
---
Log message:

Modify Path::eraseFromDisk to not throw an exception.


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

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


Index: llvm/include/llvm/System/Path.h
diff -u llvm/include/llvm/System/Path.h:1.32 llvm/include/llvm/System/Path.h:1.33
--- llvm/include/llvm/System/Path.h:1.32	Fri Jul 28 17:03:44 2006
+++ llvm/include/llvm/System/Path.h	Fri Jul 28 17:29:50 2006
@@ -522,17 +522,15 @@
       /// \p destroy_contents parameter is ignored.
       /// @param destroy_contents Indicates whether the contents of a destroyed
       /// directory should also be destroyed (recursively).
-      /// @returns true if the file/directory was destroyed, false if the path
-      /// refers to something that is neither a file nor a directory.
-      /// @throws std::string if there is an error.
+      /// @returns false if the file/directory was destroyed, true on error.
       /// @brief Removes the file or directory from the filesystem.
-      bool eraseFromDisk(bool destroy_contents = false) const;
-
+      bool eraseFromDisk(bool destroy_contents = false,
+                         std::string *Err = 0) const;
     /// @}
     /// @name Data
     /// @{
     private:
-        mutable std::string path;   ///< Storage for the path name.
+      mutable std::string path;   ///< Storage for the path name.
 
     /// @}
   };






More information about the llvm-commits mailing list