[clang] [clang][RISCV] Introduce command line options for RISC-V Zicfilp CFI (PR #109784)
Ming-Yi Lai via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 26 02:06:20 PDT 2024
================
@@ -198,6 +198,21 @@ TargetInfo::checkCFProtectionBranchSupported(DiagnosticsEngine &Diags) const {
return false;
}
+CFBranchLabelSchemeKind TargetInfo::getDefaultCFBranchLabelScheme() const {
+ // if this hook is called, the target should override it to return a
+ // non-default scheme
+ llvm::report_fatal_error("not implemented");
+}
+
+bool TargetInfo::checkCFBranchLabelSchemeSupported(
+ const CFBranchLabelSchemeKind Scheme, DiagnosticsEngine &Diags) const {
+ Diags.Report(diag::err_opt_not_valid_on_target)
----------------
mylai-mtk wrote:
Fixed
https://github.com/llvm/llvm-project/pull/109784
More information about the cfe-commits
mailing list