diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-11 19:13:52 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-11 19:13:52 +0000 |
| commit | 75f89f522548d6a81cec3d9e00633e8be8ad7373 (patch) | |
| tree | d2be7437b846b6adc1a980151700872244f51747 | |
| parent | 05db523f3cc595ad327537501eb1fa14098c56f8 (diff) | |
| download | bcm5719-llvm-75f89f522548d6a81cec3d9e00633e8be8ad7373.tar.gz bcm5719-llvm-75f89f522548d6a81cec3d9e00633e8be8ad7373.zip | |
Remove GetRootDirectory.
llvm-svn: 183775
| -rw-r--r-- | llvm/include/llvm/Support/PathV1.h | 9 | ||||
| -rw-r--r-- | llvm/lib/Support/Unix/Path.inc | 7 | ||||
| -rw-r--r-- | llvm/lib/Support/Windows/Path.inc | 8 |
3 files changed, 0 insertions, 24 deletions
diff --git a/llvm/include/llvm/Support/PathV1.h b/llvm/include/llvm/Support/PathV1.h index fe47a09d742..15f0441d1dc 100644 --- a/llvm/include/llvm/Support/PathV1.h +++ b/llvm/include/llvm/Support/PathV1.h @@ -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 diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index ab9157be99f..e3f20822e51 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -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, diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc index 1de75487b6c..efbb8b2284e 100644 --- a/llvm/lib/Support/Windows/Path.inc +++ b/llvm/lib/Support/Windows/Path.inc @@ -233,14 +233,6 @@ Path::GetTemporaryDirectory(std::string* ErrMsg) { 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]; |

