From 0c33231eff17edbdabdb186e1fae718cf94b58b2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 28 Jul 2006 22:29:50 +0000 Subject: Modify Path::eraseFromDisk to not throw an exception. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29400 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/System/Path.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'include/llvm/System') diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h index f8ff8f4..14602d7 100644 --- a/include/llvm/System/Path.h +++ b/include/llvm/System/Path.h @@ -522,17 +522,15 @@ namespace sys { /// \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. /// @} }; -- cgit v1.1