[llvm] r183775 - Remove GetRootDirectory.

Rafael Espindola rafael.espindola at gmail.com
Tue Jun 11 12:13:52 PDT 2013


Author: rafael
Date: Tue Jun 11 14:13:52 2013
New Revision: 183775

URL: http://llvm.org/viewvc/llvm-project?rev=183775&view=rev
Log:
Remove GetRootDirectory.

Modified:
    llvm/trunk/include/llvm/Support/PathV1.h
    llvm/trunk/lib/Support/Unix/Path.inc
    llvm/trunk/lib/Support/Windows/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=183775&r1=183774&r2=183775&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/PathV1.h (original)
+++ llvm/trunk/include/llvm/Support/PathV1.h Tue Jun 11 14:13:52 2013
@@ -92,15 +92,6 @@ namespace sys {
     /// @name Constructors
     /// @{
     public:
-      /// Construct a path to the root directory of the file system. The root
-      /// directory is a top level directory above which there are no more
-      /// directories. For example, on UNIX, the root directory is /. On Windows
-      /// it is file:///. Other operating systems may have different notions of
-      /// what the root directory is or none at all. In that case, a consistent
-      /// default root directory will be used.
-      LLVM_ATTRIBUTE_DEPRECATED(static Path GetRootDirectory(),
-        LLVM_PATH_DEPRECATED_MSG(NOTHING));
-
       /// Construct a path to a unique temporary directory that is created in
       /// a "standard" place for the operating system. The directory is
       /// guaranteed to be created on exit from this function. If the directory

Modified: llvm/trunk/lib/Support/Unix/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Path.inc?rev=183775&r1=183774&r2=183775&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Path.inc (original)
+++ llvm/trunk/lib/Support/Unix/Path.inc Tue Jun 11 14:13:52 2013
@@ -125,13 +125,6 @@ Path::isAbsolute() const {
 }
 
 Path
-Path::GetRootDirectory() {
-  Path result;
-  result.set("/");
-  return result;
-}
-
-Path
 Path::GetTemporaryDirectory(std::string *ErrMsg) {
 #if defined(HAVE_MKDTEMP)
   // The best way is with mkdtemp but that's not available on many systems,

Modified: llvm/trunk/lib/Support/Windows/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/Path.inc?rev=183775&r1=183774&r2=183775&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/Path.inc (original)
+++ llvm/trunk/lib/Support/Windows/Path.inc Tue Jun 11 14:13:52 2013
@@ -233,14 +233,6 @@ Path::GetTemporaryDirectory(std::string*
   return *TempDirectory;
 }
 
-// FIXME: the following set of functions don't map to Windows very well.
-Path
-Path::GetRootDirectory() {
-  // This is the only notion that that Windows has of a root directory. Nothing
-  // is here except for drives.
-  return Path("file:///");
-}
-
 Path
 Path::GetCurrentDirectory() {
   char pathname[MAX_PATH];





More information about the llvm-commits mailing list