diff options
author | Oliver Stannard <oliver.stannard@arm.com> | 2019-02-18 12:39:47 +0000 |
---|---|---|
committer | Oliver Stannard <oliver.stannard@arm.com> | 2019-02-18 12:39:47 +0000 |
commit | e3c8ce8b7547bea03fe4c9271c46c09e11fd4443 (patch) | |
tree | 8cf3f61f4253026833f1e7778c06e3d6c86244dd /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 6e0b562bf6e0e94e3ea6a755a9917b2725fd604d (diff) | |
download | bcm5719-llvm-e3c8ce8b7547bea03fe4c9271c46c09e11fd4443.tar.gz bcm5719-llvm-e3c8ce8b7547bea03fe4c9271c46c09e11fd4443.zip |
[ARM] Add pre-defined macros for ROPI and RWPI
This adds ACLE-defined macros to test for code being compiled in the ROPI and
RWPI position-independence modes.
Differential revision: https://reviews.llvm.org/D23610
llvm-svn: 354265
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index bda8427b1a1..d4094ac5aea 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -2662,6 +2662,8 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, Opts.MaxTypeAlign = getLastArgIntValue(Args, OPT_fmax_type_align_EQ, 0, Diags); Opts.AlignDouble = Args.hasArg(OPT_malign_double); Opts.PICLevel = getLastArgIntValue(Args, OPT_pic_level, 0, Diags); + Opts.ROPI = Args.hasArg(OPT_fropi); + Opts.RWPI = Args.hasArg(OPT_frwpi); Opts.PIE = Args.hasArg(OPT_pic_is_pie); Opts.Static = Args.hasArg(OPT_static_define); Opts.DumpRecordLayoutsSimple = Args.hasArg(OPT_fdump_record_layouts_simple); |