mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Expose function sections option (#28088)
* Expose separate function sections option to compiler * Add function sections test
This commit is contained in:
committed by
Saleem Abdulrasool
parent
d8cc616602
commit
eed6a4eb94
@@ -1136,6 +1136,8 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
Opts.StackPromotionSizeLimit = limit;
|
||||
}
|
||||
|
||||
Opts.FunctionSections = Args.hasArg(OPT_function_sections);
|
||||
|
||||
if (Args.hasArg(OPT_autolink_force_load))
|
||||
Opts.ForceLoadSymbolName = Args.getLastArgValue(OPT_module_link_name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user