IRGen: Add a flag to disable mangled name type metadata accessors.

Useful as a workaround for runtime demangler bugs, or in rare cases where there are
performance problems with the demangler.
This commit is contained in:
Joe Groff
2020-03-18 13:55:01 -07:00
parent bc8ff75d3a
commit 72b13e8c65
5 changed files with 19 additions and 0 deletions

View File

@@ -1261,6 +1261,9 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
if (Args.hasArg(OPT_disable_debugger_shadow_copies))
Opts.DisableDebuggerShadowCopies = true;
if (Args.hasArg(OPT_disable_concrete_type_metadata_mangled_name_accessors))
Opts.DisableConcreteTypeMetadataMangledNameAccessors = true;
if (Args.hasArg(OPT_use_jit))
Opts.UseJIT = true;