aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-08-23 07:30:48 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-08-23 07:30:48 +0000
commit5a060775da43ec2ef37e839e93a0805d543708a9 (patch)
tree6cd7efaa67dec5d363323ccc5b9ee95c2e5bb8bd /include/llvm/System
parent6f4c60770cfe6c485cdcb1397df59d2c7778cbc9 (diff)
downloadexternal_llvm-5a060775da43ec2ef37e839e93a0805d543708a9.zip
external_llvm-5a060775da43ec2ef37e839e93a0805d543708a9.tar.gz
external_llvm-5a060775da43ec2ef37e839e93a0805d543708a9.tar.bz2
For PR797:
Eliminate exception throwing from Path::renamePathOnDisk and adjust its users correspondingly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29843 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r--include/llvm/System/Path.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h
index 5609f61..368fe20 100644
--- a/include/llvm/System/Path.h
+++ b/include/llvm/System/Path.h
@@ -492,10 +492,9 @@ namespace sys {
/// 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