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
This commit is contained in:
Reid Spencer
2006-08-23 07:30:48 +00:00
parent 6f4c60770c
commit 5a060775da
8 changed files with 44 additions and 49 deletions

View File

@ -123,10 +123,10 @@ inline void ThrowErrno(const std::string& prefix, int errnum = -1) {
/// string and the Unix error number given by \p errnum. If errnum is -1, the
/// default then the value of errno is used.
/// @brief Make an error message
inline void MakeErrMsg(
inline bool MakeErrMsg(
std::string* ErrMsg, const std::string& prefix, int errnum = -1) {
if (!ErrMsg)
return;
return true;
char buffer[MAXPATHLEN];
buffer[0] = 0;
if (errnum == -1)
@ -148,6 +148,7 @@ inline void MakeErrMsg(
sprintf(buffer, "Error #%d", errnum);
#endif
*ErrMsg = buffer;
return true;
}
#endif