aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/System/Path.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-08-23 06:56:27 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-08-23 06:56:27 +0000
commit142ca8e81800ce6bcb511f3250bae23210d38ec8 (patch)
treeb5edc0d2bd5c9a7216da68213db868e669d7b757 /include/llvm/System/Path.h
parente5c9cb5eb6bce502faaedea04014dab46f6540f4 (diff)
For PR797:
Remove exception throwing from Path::getDirectoryContents and its users. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29841 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System/Path.h')
-rw-r--r--include/llvm/System/Path.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h
index e354efead5..5609f61cb0 100644
--- a/include/llvm/System/Path.h
+++ b/include/llvm/System/Path.h
@@ -343,10 +343,12 @@ namespace sys {
/// This function builds a list of paths that are the names of the
/// files and directories in a directory.
- /// @returns false if \p this is not a directory, true otherwise
- /// @throws std::string if the directory cannot be searched
+ /// @returns true if an error occurs, true otherwise
/// @brief Build a list of directory's contents.
- bool getDirectoryContents(std::set<Path> &paths) const;
+ bool getDirectoryContents(
+ std::set<Path> &paths, ///< The resulting list of file & directory names
+ std::string* ErrMsg ///< Optional place to return an error message.
+ ) const;
/// This function returns status information about the file. The type of
/// path (file or directory) is updated to reflect the actual contents