Add a driver option -ivfsoverlay

Reads the description of a virtual filesystem from a file and overlays
it over the real file system.

llvm-svn: 202176
This commit is contained in:
Ben Langmuir
2014-02-25 18:23:47 +00:00
parent db673ca26a
commit 801272a98c
24 changed files with 182 additions and 1 deletions

View File

@@ -761,7 +761,7 @@ error_code VFSFromYAML::openFileForRead(const Twine &Path,
if (!F) // FIXME: errc::not_a_file?
return error_code(errc::invalid_argument, system_category());
return ExternalFS->openFileForRead(Path, Result);
return ExternalFS->openFileForRead(F->getExternalContentsPath(), Result);
}
IntrusiveRefCntPtr<FileSystem>