GenerateArg(Args, OPT_ftime_report, SA);
}
- if (Opts.FunctionSections &&
- (Opts.BBSections == "none" || Opts.BBSections == "labels"))
+ if (Opts.FunctionSections)
GenerateArg(Args, OPT_ffunction_sections, SA);
if (Opts.PrepareForLTO && !Opts.PrepareForThinLTO)
}
// Basic Block Sections implies Function Sections.
- Opts.FunctionSections =
- Args.hasArg(OPT_ffunction_sections) ||
- (Opts.BBSections != "none" && Opts.BBSections != "labels");
+ Opts.FunctionSections = Args.hasArg(OPT_ffunction_sections);
Opts.PrepareForLTO = Args.hasArg(OPT_flto, OPT_flto_EQ);
Opts.PrepareForThinLTO = false;
// BB_WORLD: world:
// BB_WORLD: .section .text.world,"ax",@progbits,unique
// BB_WORLD: world.__part.1:
-// BB_WORLD: .section .text.another,"ax",@progbits
-// BB_ALL: .section .text.another,"ax",@progbits,unique
+// BB_ALL: .section .text.another,"ax",@progbits
// BB_ALL: another.__part.1:
-// BB_LIST-NOT: .section .text.another,"ax",@progbits,unique
+// BB_LIST-NOT: .section .text.another,"ax",@progbits
// BB_LIST: another:
// BB_LIST-NOT: another.__part.1:
//