[frontend] Add support for parsing ImmediateArgv.

These are not yet used, since the integrated frontend doesn’t yet support immediate mode, but they are ready for use once immediate mode is supported.

Swift SVN r11326
This commit is contained in:
Connor Wakamo
2013-12-15 00:58:28 +00:00
parent 6127955b05
commit 40dfbc0bc8
2 changed files with 9 additions and 0 deletions

View File

@@ -83,6 +83,12 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
Opts.ModuleSourceListPath = A->getValue();
}
if (const Arg *A = Args.getLastArg(OPT__DASH_DASH)) {
for (unsigned i = 0, e = A->getNumValues(); i != e; ++i) {
Opts.ImmediateArgv.push_back(A->getValue(i));
}
}
return false;
}