Expose function sections option (#28088)

* Expose separate function sections option to compiler

* Add function sections test
This commit is contained in:
Alex Suhan
2020-01-13 14:45:01 -08:00
committed by Saleem Abdulrasool
parent d8cc616602
commit eed6a4eb94
8 changed files with 41 additions and 1 deletions

View File

@@ -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);