summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-11-09 15:10:45 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-11-09 15:10:45 +0000
commitdf929cf8dfe8968b111262569644d46aa4b533c3 (patch)
tree767d9bd51d4cb27a850b7d5bc71cc0eca24a91b9 /llvm/lib
parent4b263dddc46c2bb3b44558d07466314f2528672f (diff)
downloadbcm5719-llvm-df929cf8dfe8968b111262569644d46aa4b533c3.tar.gz
bcm5719-llvm-df929cf8dfe8968b111262569644d46aa4b533c3.zip
System/Path/Windows: Change GetRootDirectory to return file:/// instead of C:/.
llvm-svn: 118502
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/System/Win32/Path.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/System/Win32/Path.inc b/llvm/lib/System/Win32/Path.inc
index 8e3004d0ac4..75f6b7134a4 100644
--- a/llvm/lib/System/Win32/Path.inc
+++ b/llvm/lib/System/Win32/Path.inc
@@ -233,9 +233,9 @@ Path::GetTemporaryDirectory(std::string* ErrMsg) {
// FIXME: the following set of functions don't map to Windows very well.
Path
Path::GetRootDirectory() {
- Path result;
- result.set("C:/");
- return result;
+ // This is the only notion that that Windows has of a root directory. Nothing
+ // is here except for drives.
+ return Path("file:///");
}
void
OpenPOWER on IntegriCloud