aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-12-25 20:10:11 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-12-25 20:10:11 +0000
commit43ee29d418c4df3dee00e77bec7030bc10cb837c (patch)
tree01e5e18aaf06efbcebe19aa02fa495ef560731bb
parent7853ae1d97acb65bd4dfd9a15478c14f475dbd41 (diff)
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
-rw-r--r--include/llvm/Support/PathV1.h4
-rw-r--r--lib/Support/Unix/Path.inc12
2 files changed, 3 insertions, 13 deletions
diff --git a/include/llvm/Support/PathV1.h b/include/llvm/Support/PathV1.h
index b1b61b6c9a..a22c40f51b 100644
--- a/include/llvm/Support/PathV1.h
+++ b/include/llvm/Support/PathV1.h
@@ -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
diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc
index dccf9010ab..b21245c820 100644
--- a/lib/Support/Unix/Path.inc
+++ b/lib/Support/Unix/Path.inc
@@ -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;