Add a new frontend option -sil-serialize-witness-tables to force serialization of SIL witness tables

This option is supposed to be used only for compiling overlays. User code should never be compiled with this option.
This commit is contained in:
Roman Levenstein
2017-06-16 16:28:10 -07:00
parent 1dea34b358
commit 2f920c4ad2
5 changed files with 17 additions and 0 deletions

View File

@@ -1329,6 +1329,9 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
Opts.MergePartialModules = true;
Opts.SILSerializeAll |= Args.hasArg(OPT_sil_serialize_all);
Opts.SILSerializeWitnessTables |=
Args.hasArg(OPT_sil_serialize_witness_tables);
// Parse the optimization level.
if (const Arg *A = Args.getLastArg(OPT_O_Group)) {
if (A->getOption().matches(OPT_Onone)) {