diff options
| author | Rafael Ávila de Espíndola <[email protected]> | 2011-03-21 16:02:00 -0400 |
|---|---|---|
| committer | Rafael Ávila de Espíndola <[email protected]> | 2011-03-21 16:02:00 -0400 |
| commit | f3057244a6b5f3e5fbfbcf0a74e285cc7704027d (patch) | |
| tree | 805288bba0096150332861a32833a950d35cb593 | |
| parent | The T_taskptr is already included in the n_args, don't add it twice. (diff) | |
| download | rust-f3057244a6b5f3e5fbfbcf0a74e285cc7704027d.tar.xz rust-f3057244a6b5f3e5fbfbcf0a74e285cc7704027d.zip | |
Make the wrapper function of native functions private.
| -rw-r--r-- | src/comp/middle/trans.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index 40ce2896..c6cd1ab4 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -5436,6 +5436,8 @@ fn decl_native_fn_and_pair(@crate_ctxt cx, auto wrapper_type = native_fn_wrapper_type(cx, num_ty_param, ann); let str s = cx.names.next("_rust_wrapper") + sep() + name; let ValueRef wrapper_fn = decl_fastcall_fn(cx.llmod, s, wrapper_type); + llvm.LLVMSetLinkage(wrapper_fn, lib.llvm.LLVMPrivateLinkage + as llvm.Linkage); // Declare the global constant pair that points to it. auto wrapper_pair_type = T_fn_pair(cx.tn, wrapper_type); |