System/Path/Windows: Change GetRootDirectory to return file:/// instead of C:/.

llvm-svn: 118502
This commit is contained in:
Michael J. Spencer 2010-11-09 15:10:45 +00:00
parent 4b263dddc4
commit df929cf8df
2 changed files with 4 additions and 4 deletions

View File

@ -89,7 +89,7 @@ namespace sys {
/// Construct a path to the root directory of the file system. The root /// 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 /// directory is a top level directory above which there are no more
/// directories. For example, on UNIX, the root directory is /. On Windows /// 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 /// what the root directory is or none at all. In that case, a consistent
/// default root directory will be used. /// default root directory will be used.
static Path GetRootDirectory(); static Path GetRootDirectory();

View File

@ -233,9 +233,9 @@ Path::GetTemporaryDirectory(std::string* ErrMsg) {
// FIXME: the following set of functions don't map to Windows very well. // FIXME: the following set of functions don't map to Windows very well.
Path Path
Path::GetRootDirectory() { Path::GetRootDirectory() {
Path result; // This is the only notion that that Windows has of a root directory. Nothing
result.set("C:/"); // is here except for drives.
return result; return Path("file:///");
} }
void void