mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user