diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-11-09 15:10:45 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-11-09 15:10:45 +0000 |
commit | 87e0697a46ad214be0d8fce0955494f4085de95a (patch) | |
tree | 44726dc91714efdf8d9c3dd065ac65d5e9b3dcca /lib/System/Win32 | |
parent | 64cf752e9cc6beafbafc387d6a0ccf79bc774e7c (diff) | |
download | external_llvm-87e0697a46ad214be0d8fce0955494f4085de95a.zip external_llvm-87e0697a46ad214be0d8fce0955494f4085de95a.tar.gz external_llvm-87e0697a46ad214be0d8fce0955494f4085de95a.tar.bz2 |
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/Win32')
-rw-r--r-- | lib/System/Win32/Path.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc index 8e3004d..75f6b71 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 |