We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 486e208 commit a7836b6Copy full SHA for a7836b6
src/librustc_codegen_llvm/intrinsic.rs
@@ -1106,6 +1106,8 @@ fn gen_fn<'ll, 'tcx>(
1106
));
1107
let fn_abi = FnAbi::of_fn_ptr(cx, rust_fn_sig, &[]);
1108
let llfn = cx.declare_fn(name, &fn_abi);
1109
+ cx.set_frame_pointer_elimination(llfn);
1110
+ cx.apply_target_cpu_attr(llfn);
1111
// FIXME(eddyb) find a nicer way to do this.
1112
unsafe { llvm::LLVMRustSetLinkage(llfn, llvm::Linkage::InternalLinkage) };
1113
let bx = Builder::new_block(cx, llfn, "entry-block");
0 commit comments