Changes in directory llvm/include/llvm/System:
Path.h updated: 1.35 -> 1.36 --- Log message: Make the sys::Path::GetTemporaryDirectory method not throw exceptions and adjust users of it to compensate. --- Diffs of the changes: (+4 -3) Path.h | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) Index: llvm/include/llvm/System/Path.h diff -u llvm/include/llvm/System/Path.h:1.35 llvm/include/llvm/System/Path.h:1.36 --- llvm/include/llvm/System/Path.h:1.35 Tue Aug 1 13:16:02 2006 +++ llvm/include/llvm/System/Path.h Tue Aug 22 14:01:30 2006 @@ -97,10 +97,11 @@ /// a "standard" place for the operating system. The directory is /// guaranteed to be created on exit from this function. If the directory /// cannot be created, the function will throw an exception. - /// @throws std::string indicating why the directory could not be created. + /// @returns an invalid path (empty) on error + /// @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(); + static Path GetTemporaryDirectory(std::string* ErrMsg); /// Construct a vector of sys::Path that contains the "standard" system /// library paths suitable for linking into programs. This function *must* @@ -171,7 +172,7 @@ /// @throws std::string if \p unverified_path is not legal. /// @param unverified_path The path to verify and assign. /// @brief Construct a Path from a string. - explicit Path(const std::string& unverified_path); + explicit Path(const std::string& p) : path(p) {} /// @} /// @name Operators _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits