Merge pull request #10345 from swiftix/witness-thunks-serialization-fixes-3

Clean-up the code that stored and passes the SILSerializeAll flag around
This commit is contained in:
Roman Levenstein
2017-06-16 18:23:32 -07:00
committed by GitHub
12 changed files with 36 additions and 54 deletions

View File

@@ -859,7 +859,6 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
Args.hasArg(OPT_serialize_debugging_options);
Opts.EnableSourceImport |= Args.hasArg(OPT_enable_source_import);
Opts.ImportUnderlyingModule |= Args.hasArg(OPT_import_underlying_module);
Opts.SILSerializeAll |= Args.hasArg(OPT_sil_serialize_all);
Opts.EnableSerializationNestedTypeLookupTable &=
!Args.hasArg(OPT_disable_serialization_nested_type_lookup_table);
@@ -1329,6 +1328,7 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
if (Args.hasArg(OPT_sil_merge_partial_modules))
Opts.MergePartialModules = true;
Opts.SILSerializeAll |= Args.hasArg(OPT_sil_serialize_all);
// Parse the optimization level.
if (const Arg *A = Args.getLastArg(OPT_O_Group)) {
if (A->getOption().matches(OPT_Onone)) {