Apply CPU attributes to __rust_try
This commit is contained in:
parent
61b67d0c19
commit
d73813ae62
@ -1106,6 +1106,8 @@ fn gen_fn<'ll, 'tcx>(
|
||||
));
|
||||
let fn_abi = FnAbi::of_fn_ptr(cx, rust_fn_sig, &[]);
|
||||
let llfn = cx.declare_fn(name, &fn_abi);
|
||||
cx.set_frame_pointer_elimination(llfn);
|
||||
cx.apply_target_cpu_attr(llfn);
|
||||
// FIXME(eddyb) find a nicer way to do this.
|
||||
unsafe { llvm::LLVMRustSetLinkage(llfn, llvm::Linkage::InternalLinkage) };
|
||||
let bx = Builder::new_block(cx, llfn, "entry-block");
|
||||
|
Loading…
Reference in New Issue
Block a user