[clang] [Clang][RISCV] Add preprocessor macros for Zicfilp CFI scheme (PR #109600)
Ming-Yi Lai via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 26 01:25:12 PDT 2024
================
@@ -134,6 +134,25 @@ class RISCVTargetInfo : public TargetInfo {
bool validateGlobalRegisterVariable(StringRef RegName, unsigned RegSize,
bool &HasSizeMismatch) const override;
+
+ bool checkCFProtectionBranchSupported() const override {
+ return ISAInfo->hasExtension("zicfilp");
----------------
mylai-mtk wrote:
Fixed: Always return supported for `-fcf-protection=branch`.
https://github.com/llvm/llvm-project/pull/109600
More information about the cfe-commits
mailing list