mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
System/Path/Windows: Change GetRootDirectory to return file:/// instead of C:/.
llvm-svn: 118502
This commit is contained in:
parent
9d3766f99b
commit
3ae9fd29ae
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user