}
}
- if let Some(BranchProtection { bti, pac_ret }) = sess.opts.debugging_opts.branch_protection {
+ if let Some(BranchProtection { bti, pac_ret }) = sess.opts.unstable_opts.branch_protection {
if sess.target.arch != "aarch64" {
sess.err("-Zbranch-protection is only supported on aarch64");
} else {
}
// Pass on the control-flow protection flags to LLVM (equivalent to `-fcf-protection` in Clang).
- if let CFProtection::Branch | CFProtection::Full = sess.opts.debugging_opts.cf_protection {
+ if let CFProtection::Branch | CFProtection::Full = sess.opts.unstable_opts.cf_protection {
llvm::LLVMRustAddModuleFlag(
llmod,
llvm::LLVMModFlagBehavior::Override,
1,
)
}
- if let CFProtection::Return | CFProtection::Full = sess.opts.debugging_opts.cf_protection {
+ if let CFProtection::Return | CFProtection::Full = sess.opts.unstable_opts.cf_protection {
llvm::LLVMRustAddModuleFlag(
llmod,
llvm::LLVMModFlagBehavior::Override,
)
}
- if sess.opts.debugging_opts.virtual_function_elimination {
+ if sess.opts.unstable_opts.virtual_function_elimination {
llvm::LLVMRustAddModuleFlag(
llmod,
llvm::LLVMModFlagBehavior::Error,