File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ pub use self::CalleeData::*;
18
18
pub use self :: CallArgs :: * ;
19
19
20
20
use arena:: TypedArena ;
21
- use back:: link ;
21
+ use back:: symbol_names ;
22
22
use llvm:: { self , ValueRef , get_params} ;
23
23
use middle:: cstore:: LOCAL_CRATE ;
24
24
use middle:: def_id:: DefId ;
@@ -298,8 +298,10 @@ pub fn trans_fn_pointer_shim<'a, 'tcx>(
298
298
debug ! ( "tuple_fn_ty: {:?}" , tuple_fn_ty) ;
299
299
300
300
//
301
- let function_name = link:: mangle_internal_name_by_type_and_seq ( ccx, bare_fn_ty,
302
- "fn_pointer_shim" ) ;
301
+ let function_name = symbol_names:: internal_name_from_type_and_suffix ( ccx,
302
+ bare_fn_ty_maybe_ref,
303
+ "fn_pointer_shim" ) ;
304
+
303
305
let llfn = declare:: declare_internal_rust_fn ( ccx, & function_name[ ..] , tuple_fn_ty) ;
304
306
305
307
//
You can’t perform that action at this time.
0 commit comments