[frontend] Move ParseStdlib from CompilerInvocation to FrontendOptions, and move handling of -parse-stdlib to ParseFrontendArgs().

Swift SVN r12173
This commit is contained in:
Connor Wakamo
2014-01-11 00:33:30 +00:00
parent 86fe23de29
commit 044be74855
3 changed files with 9 additions and 7 deletions

View File

@@ -111,6 +111,10 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
}
}
if (Args.hasArg(OPT_parse_stdlib)) {
Opts.ParseStdlib = true;
}
if (const Arg *A = Args.getLastArg(OPT_module_source_list)) {
Opts.ModuleSourceListPath = A->getValue();
}
@@ -410,10 +414,6 @@ bool CompilerInvocation::parseArgs(ArrayRef<const char *> Args,
case OPT_parse_as_library:
setInputKind(SourceFileKind::Library);
break;
case OPT_parse_stdlib:
setParseStdlib();
break;
}
}