Introduce llvm::sys::path::home_directory.
[oota-llvm.git] / include / llvm / Support / Path.h
index b2afe1b8e8ac79a39e18d275e03b9da02a9fc54a..ba18529b48afa8fc9cb149166ea86bb235f2d7a5 100644 (file)
@@ -306,6 +306,12 @@ bool is_separator(char value);
 /// @param result Holds the resulting path name.
 void system_temp_directory(bool erasedOnReboot, SmallVectorImpl<char> &result);
 
+/// @brief Get the user's home directory.
+///
+/// @param result Holds the resulting path name.
+/// @result True if a home directory is set, false otherwise.
+bool home_directory(SmallVectorImpl<char> &result);
+
 /// @brief Has root name?
 ///
 /// root_name != ""