Support/PathV2: Move current_path from path to fs and fix the Unix implementation.
[oota-llvm.git] / include / llvm / Support / FileSystem.h
index ce4da7ea75df856bfbb90bf1cfbdf2b3405dded2..5b8e2eab8ef73eea9fd89300a020b6c7459fbacc 100644 (file)
@@ -148,6 +148,13 @@ error_code create_hard_link(const Twine &to, const Twine &from);
 ///          otherwise a platform specific error_code.
 error_code create_symlink(const Twine &to, const Twine &from);
 
+/// @brief Get the current path.
+///
+/// @param result Holds the current path on return.
+/// @results errc::success if the current path has been stored in result,
+///          otherwise a platform specific error_code.
+error_code current_path(SmallVectorImpl<char> &result);
+
 /// @brief Remove path. Equivalent to POSIX remove().
 ///
 /// @param path Input path.