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 | 87b03450eed53c91d03bc05a5fe9c11c2078ccf4 (patch) | |
tree | 4716e4d4ff4128d4fb036a680789d9076be6b582 /llvm/lib/Support/Windows/Path.inc | |
parent | 32d725b80aebe3b0dc6df3a7b55d94efb98665bb (diff) | |
download | bcm5719-llvm-87b03450eed53c91d03bc05a5fe9c11c2078ccf4.tar.gz bcm5719-llvm-87b03450eed53c91d03bc05a5fe9c11c2078ccf4.zip |
Remove Path::isAbsolute().
llvm-svn: 183835
Diffstat (limited to 'llvm/lib/Support/Windows/Path.inc')
-rw-r--r-- | llvm/lib/Support/Windows/Path.inc | 15 |
1 files changed, 0 insertions, 15 deletions
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 |