[IRGen] Added gate for metadata prespecialization.

The new frontend flag -prespecialize-generic-metadata must be passed in
order for generic metadata to be specialized statically.

rdar://problem/56984885
This commit is contained in:
Nate Chandler
2019-12-04 14:48:52 -08:00
parent 525e25603f
commit e45b05476e
3 changed files with 15 additions and 2 deletions

View File

@@ -1249,6 +1249,10 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
Opts.DisableLegacyTypeInfo = true;
}
if (Args.hasArg(OPT_prespecialize_generic_metadata)) {
Opts.PrespecializeGenericMetadata = true;
}
if (const Arg *A = Args.getLastArg(OPT_read_legacy_type_info_path_EQ)) {
Opts.ReadLegacyTypeInfoPath = A->getValue();
}