summaryrefslogtreecommitdiff
path: root/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorBen Langmuir <blangmuir@apple.com>2014-02-25 18:23:47 +0000
committerBen Langmuir <blangmuir@apple.com>2014-02-25 18:23:47 +0000
commit89de580b52889e160a604bd735fc4e79147661cb (patch)
tree44fc8ba3a2075de87bb6d5a2e542543e8732820b /lib/Frontend/CompilerInvocation.cpp
parentee8d6b96cec22857c609a0ff439e237a6c4fccc5 (diff)
downloadclang-89de580b52889e160a604bd735fc4e79147661cb.tar.gz
clang-89de580b52889e160a604bd735fc4e79147661cb.tar.bz2
clang-89de580b52889e160a604bd735fc4e79147661cb.tar.xz
Add a driver option -ivfsoverlay
Reads the description of a virtual filesystem from a file and overlays it over the real file system. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--lib/Frontend/CompilerInvocation.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp
index 4ef5cfef7c..ad2d37cc29 100644
--- a/lib/Frontend/CompilerInvocation.cpp
+++ b/lib/Frontend/CompilerInvocation.cpp
@@ -1020,6 +1020,10 @@ static void ParseHeaderSearchArgs(HeaderSearchOptions &Opts, ArgList &Args) {
I != E; ++I)
Opts.AddSystemHeaderPrefix((*I)->getValue(),
(*I)->getOption().matches(OPT_isystem_prefix));
+
+ for (arg_iterator I = Args.filtered_begin(OPT_ivfsoverlay),
+ E = Args.filtered_end(); I != E; ++I)
+ Opts.AddVFSOverlayFile((*I)->getValue());
}
void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK,