aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/Windows/Path.inc
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-12 15:02:39 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-12 15:02:39 +0000
commitfa2bbb31fae64bc8cc3dc3736f5465d3ddba1704 (patch)
tree0b01fd710b7cc5ce411bbc5f4762b98b2b8c0851 /lib/Support/Windows/Path.inc
parent5475e2b01e8f69c398353736bf3afe9b40e01cf8 (diff)
downloadexternal_llvm-fa2bbb31fae64bc8cc3dc3736f5465d3ddba1704.zip
external_llvm-fa2bbb31fae64bc8cc3dc3736f5465d3ddba1704.tar.gz
external_llvm-fa2bbb31fae64bc8cc3dc3736f5465d3ddba1704.tar.bz2
Remove Path::isAbsolute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183836 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows/Path.inc')
-rw-r--r--lib/Support/Windows/Path.inc18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc
index 7cf522d..165c18f 100644
--- a/lib/Support/Windows/Path.inc
+++ b/lib/Support/Windows/Path.inc
@@ -150,24 +150,6 @@ void Path::makeAbsolute() {
}
}
-bool
-Path::isAbsolute(const char *NameStart, unsigned NameLen) {
- assert(NameStart);
- // FIXME: This does not handle correctly an absolute path starting from
- // a drive letter or in UNC format.
- switch (NameLen) {
- case 0:
- return false;
- case 1:
- case 2:
- return NameStart[0] == '/';
- default:
- return
- (NameStart[0] == '/' || (NameStart[1] == ':' && NameStart[2] == '/')) ||
- (NameStart[0] == '\\' || (NameStart[1] == ':' && NameStart[2] == '\\'));
- }
-}
-
static Path *TempDirectory;
Path