Skip to content

Commit

Permalink
Use new symbol naming scheme for fn-pointer-shims.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister authored and nikomatsakis committed Mar 25, 2016
1 parent 7a5a988 commit 23e54b2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/librustc_trans/trans/callee.rs
Expand Up @@ -18,7 +18,7 @@ pub use self::CalleeData::*;
pub use self::CallArgs::*;

use arena::TypedArena;
use back::link;
use back::symbol_names;
use llvm::{self, ValueRef, get_params};
use middle::cstore::LOCAL_CRATE;
use middle::def_id::DefId;
Expand Down Expand Up @@ -378,8 +378,10 @@ pub fn trans_fn_pointer_shim<'a, 'tcx>(
debug!("tuple_fn_ty: {:?}", tuple_fn_ty);

//
let function_name = link::mangle_internal_name_by_type_and_seq(ccx, bare_fn_ty,
"fn_pointer_shim");
let function_name =
symbol_names::internal_name_from_type_and_suffix(ccx,
bare_fn_ty,
"fn_pointer_shim");
let llfn = declare::define_internal_fn(ccx, &function_name, tuple_fn_ty);

//
Expand Down

0 comments on commit 23e54b2

Please sign in to comment.