Skip to content

Commit

Permalink
Use new symbol naming scheme for fn-once-shims.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister committed Feb 15, 2016
1 parent b4f6ea0 commit b474c10
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/librustc_trans/trans/closure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// except according to those terms.

use arena::TypedArena;
use back::{link, symbol_names};
use back::symbol_names;
use llvm::{ValueRef, get_params};
use middle::def_id::DefId;
use middle::infer;
Expand Down Expand Up @@ -373,7 +373,9 @@ fn trans_fn_once_adapter_shim<'a, 'tcx>(
let llonce_fn_ty = tcx.mk_fn(None, llonce_bare_fn_ty);

// Create the by-value helper.
let function_name = link::mangle_internal_name_by_type_and_seq(ccx, llonce_fn_ty, "once_shim");
let function_name = symbol_names::internal_name_from_type_and_suffix(ccx,
llonce_fn_ty,
"once_shim");
let lloncefn = declare::define_internal_rust_fn(ccx, &function_name,
llonce_fn_ty);
let sig = tcx.erase_late_bound_regions(&llonce_bare_fn_ty.sig);
Expand Down

0 comments on commit b474c10

Please sign in to comment.