Add a flag to disable compile-time preallocated instantiation caches (for type metadata and protocol conformances) (#41148)

This commit is contained in:
Kuba (Brecka) Mracek
2022-02-02 12:06:16 -08:00
committed by GitHub
parent f05f23147f
commit 17c5d6f0de
9 changed files with 144 additions and 5 deletions

View File

@@ -2182,6 +2182,10 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
Opts.InternalizeAtLink = true;
}
if (Args.hasArg(OPT_disable_preallocated_instantiation_caches)) {
Opts.NoPreallocatedInstantiationCaches = true;
}
// Default to disabling swift async extended frame info on anything but
// darwin. Other platforms are unlikely to have support for extended frame
// pointer information.