[ownership] Make whether or not we serialize in OSSA form based off of the flag -enable-ossa-modules.

I added a change to CMake so that the stdlib still gets the option passed in so
should be NFC.
This commit is contained in:
Michael Gottesman
2021-02-17 21:44:26 -08:00
parent 0d9ca2044f
commit 91317c723c
11 changed files with 38 additions and 15 deletions

View File

@@ -1186,6 +1186,7 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
Opts.RemoveRuntimeAsserts |= Args.hasArg(OPT_RemoveRuntimeAsserts);
Opts.EnableARCOptimizations &= !Args.hasArg(OPT_disable_arc_opts);
Opts.EnableOSSAModules |= Args.hasArg(OPT_enable_ossa_modules);
Opts.EnableOSSAOptimizations &= !Args.hasArg(OPT_disable_ossa_opts);
Opts.EnableSpeculativeDevirtualization |= Args.hasArg(OPT_enable_spec_devirt);
Opts.DisableSILPerfOptimizations |= Args.hasArg(OPT_disable_sil_perf_optzns);