diff options
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index f929647..a49c978 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1383,8 +1383,7 @@ void CompilerInvocation::GenerateCodeGenArgs( 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) @@ -1678,9 +1677,7 @@ bool CompilerInvocation::ParseCodeGenArgsImpl(CodeGenOptions &Opts, } // 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; |