mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #41449 from lorentey/custom-traps
[IRGen] Allow configuring a panic function to call instead of trapping
This commit is contained in:
@@ -1929,6 +1929,9 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
Opts.StackPromotionSizeLimit = limit;
|
||||
}
|
||||
|
||||
if (Args.hasArg(OPT_trap_function))
|
||||
Opts.TrapFuncName = Args.getLastArgValue(OPT_trap_function).str();
|
||||
|
||||
Opts.FunctionSections = Args.hasArg(OPT_function_sections);
|
||||
|
||||
if (Args.hasArg(OPT_autolink_force_load))
|
||||
|
||||
Reference in New Issue
Block a user