diff options
author | Ben Langmuir <blangmuir@apple.com> | 2014-02-25 18:23:47 +0000 |
---|---|---|
committer | Ben Langmuir <blangmuir@apple.com> | 2014-02-25 18:23:47 +0000 |
commit | 801272a98c719280da26cbaad7592e975c70f44f (patch) | |
tree | 18a869897855b7e9cd5cdbbd51b3b55f64fb8db2 /clang/lib/Basic/VirtualFileSystem.cpp | |
parent | db673ca26af8501ddc1ab06d1f1209e96e76687e (diff) | |
download | bcm5719-llvm-801272a98c719280da26cbaad7592e975c70f44f.tar.gz bcm5719-llvm-801272a98c719280da26cbaad7592e975c70f44f.zip |
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
Diffstat (limited to 'clang/lib/Basic/VirtualFileSystem.cpp')
-rw-r--r-- | clang/lib/Basic/VirtualFileSystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/VirtualFileSystem.cpp b/clang/lib/Basic/VirtualFileSystem.cpp index 881e1663953..539cbb74097 100644 --- a/clang/lib/Basic/VirtualFileSystem.cpp +++ b/clang/lib/Basic/VirtualFileSystem.cpp @@ -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> |