mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[frontend] Move ParseStdlib from CompilerInvocation to FrontendOptions, and move handling of -parse-stdlib to ParseFrontendArgs().
Swift SVN r12173
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user