1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Support/PathV1: Deprecate makeAbsolute and remove Unix impl because it annoys people.

llvm-svn: 122553
This commit is contained in:
Michael J. Spencer 2010-12-25 20:10:11 +00:00
parent 61974eb1f8
commit b3e50a570f
2 changed files with 3 additions and 13 deletions

View File

@ -494,7 +494,9 @@ namespace sys {
/// The current Path name is made absolute by prepending the
/// current working directory if necessary.
void makeAbsolute();
LLVM_ATTRIBUTE_DEPRECATED(
void makeAbsolute(),
LLVMV_PATH_DEPRECATED_MSG(fs::make_absolute));
/// @}
/// @name Disk Mutators

View File

@ -119,18 +119,6 @@ Path::isAbsolute() const {
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::GetRootDirectory() {
Path result;