mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Support/PathV2: Move current_path from path to fs and fix the Unix implementation.
Unix bug spotted by Dan Gohman. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121090 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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.
|
||||
|
@@ -202,15 +202,6 @@ error_code native(const Twine &path, SmallVectorImpl<char> &result);
|
||||
/// @name Lexical Observers
|
||||
/// @{
|
||||
|
||||
/// @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);
|
||||
|
||||
// The following are purely lexical.
|
||||
|
||||
/// @brief Get root name.
|
||||
///
|
||||
/// //net/hello => //net
|
||||
|
Reference in New Issue
Block a user