[prev in list] [next in list] [prev in thread] [next in thread] 

List:       llvm-commits
Subject:    [llvm-commits] CVS: llvm/include/llvm/System/Path.h
From:       "Chris Lattner" <lattner () cs ! uiuc ! edu>
Date:       2006-07-28 22:30:12
Message-ID: 200607282230.k6SMUCoF008467 () zion ! cs ! uiuc ! edu
[Download RAW message or body]



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.
 
     /// @}
   };




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic