Skip to content

Commit 2a1c992

Browse files
committed
Disable -disable-concrete-type-metadata-mangled-name-accessors flag.
With the improvements to protocol casting performance from swiftlang#33487, the demangling overhead is hopefully manageable for most people using this flag today.
1 parent ce2377d commit 2a1c992

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,9 +1448,6 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
14481448
if (Args.hasArg(OPT_disable_debugger_shadow_copies))
14491449
Opts.DisableDebuggerShadowCopies = true;
14501450

1451-
if (Args.hasArg(OPT_disable_concrete_type_metadata_mangled_name_accessors))
1452-
Opts.DisableConcreteTypeMetadataMangledNameAccessors = true;
1453-
14541451
if (Args.hasArg(OPT_use_jit)) {
14551452
Opts.UseJIT = true;
14561453
if (const Arg *A = Args.getLastArg(OPT_dump_jit)) {

test/IRGen/access_type_metadata_by_mangled_name.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
// RUN: %target-swift-frontend -emit-ir -parse-stdlib %s | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-endian
2-
// RUN: %target-swift-frontend -emit-ir -disable-concrete-type-metadata-mangled-name-accessors -parse-stdlib %s | %FileCheck %s --check-prefix=DISABLED
3-
4-
// DISABLED-NOT: __swift_instantiateConcreteTypeFromMangledName
5-
// DISABLED-NOT: MD" = {{.*}} global
62

73
// CHECK: @"$s36access_type_metadata_by_mangled_name3FooCyAA3BarCyAA3ZimCyAA4ZangCGGGMD" = linkonce_odr hidden global { i32, i32 }
84

0 commit comments

Comments
 (0)