summaryrefslogtreecommitdiff
path: root/lib/System
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
commit87e0697a46ad214be0d8fce0955494f4085de95a (patch)
tree44726dc91714efdf8d9c3dd065ac65d5e9b3dcca /lib/System
parent64cf752e9cc6beafbafc387d6a0ccf79bc774e7c (diff)
downloadllvm-87e0697a46ad214be0d8fce0955494f4085de95a.tar.gz
llvm-87e0697a46ad214be0d8fce0955494f4085de95a.tar.bz2
llvm-87e0697a46ad214be0d8fce0955494f4085de95a.tar.xz
System/Path/Windows: Change GetRootDirectory to return file:/// instead of C:/.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118502 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-rw-r--r--lib/System/Win32/Path.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc
index 8e3004d0ac..75f6b7134a 100644
--- a/lib/System/Win32/Path.inc
+++ b/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