We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12e7feb commit f305724Copy full SHA for f305724
src/comp/middle/trans.rs
@@ -5436,6 +5436,8 @@ fn decl_native_fn_and_pair(@crate_ctxt cx,
5436
auto wrapper_type = native_fn_wrapper_type(cx, num_ty_param, ann);
5437
let str s = cx.names.next("_rust_wrapper") + sep() + name;
5438
let ValueRef wrapper_fn = decl_fastcall_fn(cx.llmod, s, wrapper_type);
5439
+ llvm.LLVMSetLinkage(wrapper_fn, lib.llvm.LLVMPrivateLinkage
5440
+ as llvm.Linkage);
5441
5442
// Declare the global constant pair that points to it.
5443
auto wrapper_pair_type = T_fn_pair(cx.tn, wrapper_type);
0 commit comments