mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add -Xfrontend -mergeable-traps as a way to emit mergeable traps
This commit is contained in:
@@ -3782,6 +3782,11 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
return true;
|
||||
}
|
||||
|
||||
Opts.MergeableTraps = Opts.shouldOptimize();
|
||||
if (Args.hasArg(OPT_mergeable_traps)) {
|
||||
Opts.MergeableTraps = true;
|
||||
}
|
||||
|
||||
Opts.EnableObjectiveCProtocolSymbolicReferences =
|
||||
Args.hasFlag(OPT_enable_objective_c_protocol_symbolic_references,
|
||||
OPT_disable_objective_c_protocol_symbolic_references,
|
||||
|
||||
Reference in New Issue
Block a user