[VFS] Port driver tool chains to VFS.
There are still some loose ends here but it's sufficient so we can detect GCC headers that are inside of a VFS. llvm-svn: 249556
This commit is contained in:
@@ -105,6 +105,11 @@ std::error_code FileSystem::makeAbsolute(SmallVectorImpl<char> &Path) const {
|
||||
return llvm::sys::fs::make_absolute(WorkingDir.get(), Path);
|
||||
}
|
||||
|
||||
bool FileSystem::exists(const Twine &Path) {
|
||||
auto Status = status(Path);
|
||||
return Status && Status->exists();
|
||||
}
|
||||
|
||||
//===-----------------------------------------------------------------------===/
|
||||
// RealFileSystem implementation
|
||||
//===-----------------------------------------------------------------------===/
|
||||
|
||||
Reference in New Issue
Block a user