[llvm-commits] [llvm] r122553 - in /llvm/trunk: include/llvm/Support/PathV1.h lib/Support/Unix/Path.inc
Michael J. Spencer
bigcheesegs at gmail.com
Sat Dec 25 12:10:11 PST 2010
Author: mspencer
Date: Sat Dec 25 14:10:11 2010
New Revision: 122553
URL: http://llvm.org/viewvc/llvm-project?rev=122553&view=rev
Log:
Support/PathV1: Deprecate makeAbsolute and remove Unix impl because it annoys people.
Modified:
llvm/trunk/include/llvm/Support/PathV1.h
llvm/trunk/lib/Support/Unix/Path.inc
Modified: llvm/trunk/include/llvm/Support/PathV1.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/PathV1.h?rev=122553&r1=122552&r2=122553&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/PathV1.h (original)
+++ llvm/trunk/include/llvm/Support/PathV1.h Sat Dec 25 14:10:11 2010
@@ -494,7 +494,9 @@
/// 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
Modified: llvm/trunk/lib/Support/Unix/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Path.inc?rev=122553&r1=122552&r2=122553&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Path.inc (original)
+++ llvm/trunk/lib/Support/Unix/Path.inc Sat Dec 25 14:10:11 2010
@@ -119,18 +119,6 @@
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;
More information about the llvm-commits
mailing list