diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2013-10-11 03:35:10 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2013-10-11 03:35:10 +0000 |
commit | ff05979144fc199e229aaeb1d248867d87d0d866 (patch) | |
tree | 6cf6ef9dd7e76bb38adebc6d508911c2e0829da2 /lib/Frontend/CompilerInvocation.cpp | |
parent | d4705688feb77cbb8317d1c1a1fdbff5ccdf2d10 (diff) | |
download | clang-ff05979144fc199e229aaeb1d248867d87d0d866.tar.gz |
Add -fno-function-sections and -fno-data-sections. Since
-f{function,data}-sections had no tests at all, add some, and verify that the
-fno variants work as well.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192413 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 38a4b9531a..94fd4b53a6 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -398,8 +398,10 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, Opts.TrapFuncName = Args.getLastArgValue(OPT_ftrap_function_EQ); Opts.UseInitArray = Args.hasArg(OPT_fuse_init_array); - Opts.FunctionSections = Args.hasArg(OPT_ffunction_sections); - Opts.DataSections = Args.hasArg(OPT_fdata_sections); + Opts.FunctionSections = Args.hasFlag(OPT_ffunction_sections, + OPT_fno_function_sections, false); + Opts.DataSections = Args.hasFlag(OPT_fdata_sections, + OPT_fno_data_sections, false); Opts.VectorizeBB = Args.hasArg(OPT_vectorize_slp_aggressive); Opts.VectorizeLoop = Args.hasArg(OPT_vectorize_loops); |