diff options
-rw-r--r-- | include/llvm/Support/PathV1.h | 4 | ||||
-rw-r--r-- | lib/Support/Unix/Path.inc | 12 |
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; |