mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Embedded] Remove -mergeable-symbols
This option is no longer necessary, because we emit weak definitions for any imported modules. Fixes rdar://158364032.
This commit is contained in:
@@ -3766,10 +3766,6 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
|
||||
Opts.InternalizeSymbols = FrontendOpts.Static;
|
||||
|
||||
if (Args.hasArg(OPT_mergeable_symbols)) {
|
||||
Opts.MergeableSymbols = true;
|
||||
}
|
||||
|
||||
if (Args.hasArg(OPT_disable_preallocated_instantiation_caches)) {
|
||||
Opts.NoPreallocatedInstantiationCaches = true;
|
||||
}
|
||||
@@ -3906,6 +3902,10 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
|
||||
Opts.DebugCallsiteInfo |= Args.hasArg(OPT_debug_callsite_info);
|
||||
|
||||
if (Args.hasArg(OPT_mergeable_symbols))
|
||||
Diags.diagnose(SourceLoc(), diag::warn_flag_deprecated,
|
||||
"-mergeable-symbols");
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user