diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-08-22 23:27:23 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-08-22 23:27:23 +0000 |
commit | e1647f46982c67b68f40ec6d775f165cacf0a9dc (patch) | |
tree | e78e8d9f6a67fb5283d8e6c4cd83ddbddc9bac93 /include/llvm/System/Path.h | |
parent | ab96bb1df3987b94fcd897e97f917ecd064deed3 (diff) |
For PR797:
Change the Path::make*OnDisk methods exception free and adjust their usage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29836 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System/Path.h')
-rw-r--r-- | include/llvm/System/Path.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h index 8bc8eb8a1e..306ce84228 100644 --- a/include/llvm/System/Path.h +++ b/include/llvm/System/Path.h @@ -101,7 +101,7 @@ namespace sys { /// @param ErrMsg Optional place for an error message if an error occurs /// @brief Constrct a path to an new, unique, existing temporary /// directory. - static Path GetTemporaryDirectory(std::string* ErrMsg); + static Path GetTemporaryDirectory(std::string* ErrMsg = 0); /// Construct a vector of sys::Path that contains the "standard" system /// library paths suitable for linking into programs. This function *must* @@ -424,18 +424,18 @@ namespace sys { /// This method attempts to make the file referenced by the Path object /// available for reading so that the canRead() method will return true. /// @brief Make the file readable; - void makeReadableOnDisk(); + bool makeReadableOnDisk(std::string* ErrMsg); /// This method attempts to make the file referenced by the Path object /// available for writing so that the canWrite() method will return true. /// @brief Make the file writable; - void makeWriteableOnDisk(); + bool makeWriteableOnDisk(std::string* ErrMsg); /// This method attempts to make the file referenced by the Path object /// available for execution so that the canExecute() method will return /// true. /// @brief Make the file readable; - void makeExecutableOnDisk(); + bool makeExecutableOnDisk(std::string* ErrMsg); /// This method allows the last modified time stamp and permission bits /// to be set on the disk object referenced by the Path. |