diff options
author | Simon Dardis <simon.dardis@imgtec.com> | 2017-08-03 14:01:17 +0000 |
---|---|---|
committer | Simon Dardis <simon.dardis@imgtec.com> | 2017-08-03 14:01:17 +0000 |
commit | 1557c7772f4463a1c815d66272963c6dba38f3ef (patch) | |
tree | 212a6978e6ce5d6c98a8cfbf0dee385cc8b93efb /lib/Frontend/CompilerInvocation.cpp | |
parent | 77c8d2a783b8b9a6ea9c56bb796ef8041f35fc98 (diff) | |
download | clang-1557c7772f4463a1c815d66272963c6dba38f3ef.tar.gz |
[mips] Implement -muninit-const-in-rodata
This option when combined with -mgpopt and -membedded-data places all
uninitialized constant variables in the read-only section.
Reviewers: atanasyan, nitesh.jain
Differential Revision: https://reviews.llvm.org/D35917
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@309940 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 003ea55471..cdc3b4b04a 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -950,6 +950,8 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, Opts.Backchain = Args.hasArg(OPT_mbackchain); + Opts.UInitCstDataInROData = Args.hasArg(OPT_muninit_const_in_rodata); + Opts.EmitCheckPathComponentsToStrip = getLastArgIntValue( Args, OPT_fsanitize_undefined_strip_path_components_EQ, 0, Diags); |