summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorSean Eveson <eveson.sean@gmail.com>2018-01-08 13:42:26 +0000
committerSean Eveson <eveson.sean@gmail.com>2018-01-08 13:42:26 +0000
commit5110d4f5c01b33889b6959a70eede87457e734e7 (patch)
tree4465b4c82b44056338f37c4c94e0198531b1ede8 /clang/lib/Frontend/CompilerInvocation.cpp
parent3800f0f11d61968ae32ee79bfbdb0b4d808985ba (diff)
downloadbcm5719-llvm-5110d4f5c01b33889b6959a70eede87457e734e7.tar.gz
bcm5719-llvm-5110d4f5c01b33889b6959a70eede87457e734e7.zip
[Driver] Add flag enabling the function stack size section that was added in r319430
Adds the -fstack-size-section flag to enable the .stack_sizes section. The flag defaults to on for the PS4 triple. Differential Revision: https://reviews.llvm.org/D40712 llvm-svn: 321992
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index ce875fa03b9..22528004688 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -682,6 +682,8 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK,
OPT_fno_function_sections, false);
Opts.DataSections = Args.hasFlag(OPT_fdata_sections,
OPT_fno_data_sections, false);
+ Opts.StackSizeSection =
+ Args.hasFlag(OPT_fstack_size_section, OPT_fno_stack_size_section, false);
Opts.UniqueSectionNames = Args.hasFlag(OPT_funique_section_names,
OPT_fno_unique_section_names, true);
OpenPOWER on IntegriCloud