[clang] [Clang][RISCV] Add preprocessor macros for Zicfilp CFI scheme (PR #109600)
Kito Cheng via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 23 01:23:49 PDT 2024
================
@@ -2841,6 +2841,10 @@ def fcf_protection : Flag<["-"], "fcf-protection">, Group<f_Group>,
Visibility<[ClangOption, CLOption, CC1Option]>,
Alias<fcf_protection_EQ>, AliasArgs<["full"]>,
HelpText<"Enable cf-protection in 'full' mode">;
+def fcf_branch_label_scheme_EQ : Joined<["-"], "fcf-branch-label-scheme=">,
----------------
kito-cheng wrote:
```suggestion
def mcf_branch_label_scheme_EQ : Joined<["-"], "mcf-branch-label-scheme=">,
```
Use `m` option rather than `f` option since I assume this should apply to RISC-V only.
https://github.com/llvm/llvm-project/pull/109600
More information about the cfe-commits
mailing list