diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-12 14:47:33 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-12 14:47:33 +0000 |
commit | 5475e2b01e8f69c398353736bf3afe9b40e01cf8 (patch) | |
tree | bfd1bc1e5b35c46d41de1e72cf30fc4a4a079c82 /lib/Support/Windows/Path.inc | |
parent | c1f4a4b2640dfc871bacacef53a95f1c96a9fe48 (diff) | |
download | external_llvm-5475e2b01e8f69c398353736bf3afe9b40e01cf8.zip external_llvm-5475e2b01e8f69c398353736bf3afe9b40e01cf8.tar.gz external_llvm-5475e2b01e8f69c398353736bf3afe9b40e01cf8.tar.bz2 |
Remove Path::isAbsolute().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows/Path.inc')
-rw-r--r-- | lib/Support/Windows/Path.inc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc index f202984..7cf522d 100644 --- a/lib/Support/Windows/Path.inc +++ b/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 |