@@ -1278,7 +1278,7 @@ fn make_generic_glue(@crate_ctxt cx, @ty.t t, str name,
1278
1278
fn_name = sanitize( fn_name) ;
1279
1279
auto llfn = decl_fastcall_fn( cx. llmod, fn_name, llfnty) ;
1280
1280
1281
- auto fcx = new_fn_ctxt( cx, fn_name , llfn) ;
1281
+ auto fcx = new_fn_ctxt( cx, llfn) ;
1282
1282
auto bcx = new_top_block_ctxt( fcx) ;
1283
1283
1284
1284
auto re;
@@ -2656,7 +2656,7 @@ fn trans_for_each(@block_ctxt cx,
2656
2656
// FIXME: handle ty params properly.
2657
2657
let vec[ ast. ty_param] ty_params = vec( ) ;
2658
2658
2659
- auto fcx = new_fn_ctxt( cx. fcx. ccx, s , lliterbody) ;
2659
+ auto fcx = new_fn_ctxt( cx. fcx. ccx, lliterbody) ;
2660
2660
auto bcx = new_top_block_ctxt( fcx) ;
2661
2661
2662
2662
// FIXME: populate lllocals from llenv here.
@@ -3151,7 +3151,7 @@ fn trans_bind_thunk(@crate_ctxt cx,
3151
3151
let TypeRef llthunk_ty = get_pair_fn_ty( type_of( cx, incoming_fty) ) ;
3152
3152
let ValueRef llthunk = decl_fastcall_fn( cx. llmod, s, llthunk_ty) ;
3153
3153
3154
- auto fcx = new_fn_ctxt( cx, s , llthunk) ;
3154
+ auto fcx = new_fn_ctxt( cx, llthunk) ;
3155
3155
auto bcx = new_top_block_ctxt( fcx) ;
3156
3156
3157
3157
auto llclosure = bcx. build. PointerCast ( fcx. llenv, llclosure_ty) ;
@@ -4213,7 +4213,6 @@ fn trans_block(@block_ctxt cx, &ast.block b) -> result {
4213
4213
// - trans_args
4214
4214
4215
4215
fn new_fn_ctxt( @crate_ctxt cx,
4216
- str name,
4217
4216
ValueRef llfndecl) -> @fn_ctxt {
4218
4217
4219
4218
let ValueRef llretptr = llvm. LLVMGetParam ( llfndecl, 0 u) ;
@@ -4429,7 +4428,7 @@ fn trans_fn(@crate_ctxt cx, &ast._fn f, ast.def_id fid,
4429
4428
auto llfndecl = cx. item_ids. get( fid) ;
4430
4429
cx. item_names. insert( cx. path, llfndecl) ;
4431
4430
4432
- auto fcx = new_fn_ctxt( cx, cx . path , llfndecl) ;
4431
+ auto fcx = new_fn_ctxt( cx, llfndecl) ;
4433
4432
create_llargs_for_fn_args( fcx, f. proto,
4434
4433
ty_self, ret_ty_of_fn( ann) ,
4435
4434
f. decl. inputs, ty_params) ;
@@ -4514,7 +4513,7 @@ fn trans_obj(@crate_ctxt cx, &ast._obj ob, ast.def_id oid,
4514
4513
id=f. id) ) ;
4515
4514
}
4516
4515
4517
- auto fcx = new_fn_ctxt( cx, cx . path , llctor_decl) ;
4516
+ auto fcx = new_fn_ctxt( cx, llctor_decl) ;
4518
4517
create_llargs_for_fn_args( fcx, ast. proto_fn,
4519
4518
none[ TypeRef ] , ret_ty_of_fn( ann) ,
4520
4519
fn_args, ty_params) ;
@@ -4644,7 +4643,7 @@ fn trans_tag_variant(@crate_ctxt cx, ast.def_id tag_id,
4644
4643
check ( cx. item_ids. contains_key( variant. id) ) ;
4645
4644
let ValueRef llfndecl = cx. item_ids. get( variant. id) ;
4646
4645
4647
- auto fcx = new_fn_ctxt( cx, cx . path , llfndecl) ;
4646
+ auto fcx = new_fn_ctxt( cx, llfndecl) ;
4648
4647
create_llargs_for_fn_args( fcx, ast. proto_fn,
4649
4648
none[ TypeRef ] , ret_ty_of_fn( variant. ann) ,
4650
4649
fn_args, ty_params) ;
0 commit comments