Add -Xfrontend -mergeable-traps as a way to emit mergeable traps

This commit is contained in:
Kuba Mracek
2025-03-22 16:27:27 -07:00
parent 3cafdcdb85
commit 164b61c83d
5 changed files with 37 additions and 1 deletions

View File

@@ -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,