diff options
author | Chris Lattner <sabre@nondot.org> | 2006-07-28 22:29:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-07-28 22:29:50 +0000 |
commit | 0c33231eff17edbdabdb186e1fae718cf94b58b2 (patch) | |
tree | b7b5e08357f3a04f92267bbbc0ee9d8915a82900 /include/llvm/System | |
parent | 65a392ebeae214ccb25f4d5ec856688e4e690e0d (diff) | |
download | external_llvm-0c33231eff17edbdabdb186e1fae718cf94b58b2.zip external_llvm-0c33231eff17edbdabdb186e1fae718cf94b58b2.tar.gz external_llvm-0c33231eff17edbdabdb186e1fae718cf94b58b2.tar.bz2 |
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
Diffstat (limited to 'include/llvm/System')
-rw-r--r-- | include/llvm/System/Path.h | 10 |
1 files changed, 4 insertions, 6 deletions
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. /// @} }; |