summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/System/Path.h2
-rw-r--r--lib/System/Win32/Path.inc6
2 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h
index a3b9ccc1f0..ca1be63bbb 100644
--- a/include/llvm/System/Path.h
+++ b/include/llvm/System/Path.h
@@ -89,7 +89,7 @@ namespace sys {
/// Construct a path to the root directory of the file system. The root
/// directory is a top level directory above which there are no more
/// directories. For example, on UNIX, the root directory is /. On Windows
- /// it is C:\. Other operating systems may have different notions of
+ /// it is file:///. Other operating systems may have different notions of
/// what the root directory is or none at all. In that case, a consistent
/// default root directory will be used.
static Path GetRootDirectory();
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