diff options
| author | Javed Absar <javed.absar@arm.com> | 2019-05-21 14:21:26 +0000 |
|---|---|---|
| committer | Javed Absar <javed.absar@arm.com> | 2019-05-21 14:21:26 +0000 |
| commit | 603a2bac05a8be513536c3742a6531fcf02888ed (patch) | |
| tree | f9fd79a0ca466dd01b051658102092b24ea109e3 /clang/lib/Frontend | |
| parent | e289e988378120e1a6f628f29745816b25e9c33f (diff) | |
| download | bcm5719-llvm-603a2bac05a8be513536c3742a6531fcf02888ed.tar.gz bcm5719-llvm-603a2bac05a8be513536c3742a6531fcf02888ed.zip | |
[ARM][CMSE] Add commandline option and feature macro
Defines macro ARM_FEATURE_CMSE to 1 for v8-M targets and introduces
-mcmse option which for v8-M targets sets ARM_FEATURE_CMSE to 3.
A diagnostic is produced when the option is given on architectures
without support for Security Extensions.
Reviewed By: dmgreen, snidertm
Differential Revision: https://reviews.llvm.org/D59879
llvm-svn: 361261
Diffstat (limited to 'clang/lib/Frontend')
| -rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 8a2dbcddfa9..7cdc050e467 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -2729,6 +2729,7 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, Opts.HalfArgsAndReturns = Args.hasArg(OPT_fallow_half_arguments_and_returns) | Opts.NativeHalfArgsAndReturns; Opts.GNUAsm = !Args.hasArg(OPT_fno_gnu_inline_asm); + Opts.Cmse = Args.hasArg(OPT_mcmse); // Armv8-M Security Extensions // __declspec is enabled by default for the PS4 by the driver, and also // enabled for Microsoft Extensions or Borland Extensions, here. |

