diff options
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/Unix/Path.inc | 7 | ||||
-rw-r--r-- | llvm/lib/Support/Windows/Path.inc | 15 |
2 files changed, 0 insertions, 22 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index f604a79849c..ea8a050accf 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -117,13 +117,6 @@ Path::isAbsolute(const char *NameStart, unsigned NameLen) { return NameStart[0] == '/'; } -bool -Path::isAbsolute() const { - if (path.empty()) - return false; - return path[0] == '/'; -} - Path Path::GetTemporaryDirectory(std::string *ErrMsg) { #if defined(HAVE_MKDTEMP) diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc index f2029841c58..7cf522d22ed 100644 --- a/llvm/lib/Support/Windows/Path.inc +++ b/llvm/lib/Support/Windows/Path.inc @@ -168,21 +168,6 @@ Path::isAbsolute(const char *NameStart, unsigned NameLen) { } } -bool -Path::isAbsolute() const { - // FIXME: This does not handle correctly an absolute path starting from - // a drive letter or in UNC format. - switch (path.length()) { - case 0: - return false; - case 1: - case 2: - return path[0] == '/'; - default: - return path[0] == '/' || (path[1] == ':' && path[2] == '/'); - } -} - static Path *TempDirectory; Path |