mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-18 10:24:45 +00:00
Support/PathV1: Deprecate makeAbsolute and remove Unix impl because it annoys people.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122553 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -494,7 +494,9 @@ namespace sys {
|
|||||||
|
|
||||||
/// The current Path name is made absolute by prepending the
|
/// The current Path name is made absolute by prepending the
|
||||||
/// current working directory if necessary.
|
/// current working directory if necessary.
|
||||||
void makeAbsolute();
|
LLVM_ATTRIBUTE_DEPRECATED(
|
||||||
|
void makeAbsolute(),
|
||||||
|
LLVMV_PATH_DEPRECATED_MSG(fs::make_absolute));
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
/// @name Disk Mutators
|
/// @name Disk Mutators
|
||||||
|
@@ -119,18 +119,6 @@ Path::isAbsolute() const {
|
|||||||
return path[0] == '/';
|
return path[0] == '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
void Path::makeAbsolute() {
|
|
||||||
if (isAbsolute())
|
|
||||||
return;
|
|
||||||
|
|
||||||
Path CWD = Path::GetCurrentDirectory();
|
|
||||||
assert(CWD.isAbsolute() && "GetCurrentDirectory returned relative path!");
|
|
||||||
|
|
||||||
CWD.appendComponent(path);
|
|
||||||
|
|
||||||
path = CWD.str();
|
|
||||||
}
|
|
||||||
|
|
||||||
Path
|
Path
|
||||||
Path::GetRootDirectory() {
|
Path::GetRootDirectory() {
|
||||||
Path result;
|
Path result;
|
||||||
|
Reference in New Issue
Block a user