[driver] Set the Immediate flag in -i or -repl modes.

This activates a special mode where code is also generated for input files.
We don't really care about this for -i mode, but it makes -repl mode a bit
nicer.

Swift SVN r13044
This commit is contained in:
Jordan Rose
2014-01-28 03:16:48 +00:00
parent 4d69bebc08
commit cb358825d1

View File

@@ -680,6 +680,11 @@ bool CompilerInvocation::parseArgs(ArrayRef<const char *> Args,
return true;
}
if (FrontendOpts.RequestedAction == FrontendOptions::REPL ||
FrontendOpts.RequestedAction == FrontendOptions::Immediate) {
setImmediate(true);
}
if (ParseLangArgs(LangOpts, *ParsedArgs, Diags)) {
return true;
}