@@ -4162,20 +4162,20 @@ fn get_pair_fn_ty(llpairty: TypeRef) -> TypeRef {
4162
4162
ret struct_elt ( llpairty, 0 u) ;
4163
4163
}
4164
4164
4165
- fn register_fn ( ccx : @crate_ctxt , sp : span , path : path , flav : str ,
4165
+ fn register_fn ( ccx : @crate_ctxt , sp : span , path : path ,
4166
4166
node_id : ast:: node_id ) -> ValueRef {
4167
4167
let t = ty:: node_id_to_type ( ccx. tcx , node_id) ;
4168
- register_fn_full ( ccx, sp, path, flav , node_id, t)
4168
+ register_fn_full ( ccx, sp, path, node_id, t)
4169
4169
}
4170
4170
4171
- fn register_fn_full ( ccx : @crate_ctxt , sp : span , path : path , flav : str ,
4171
+ fn register_fn_full ( ccx : @crate_ctxt , sp : span , path : path ,
4172
4172
node_id : ast:: node_id , node_type : ty:: t ) -> ValueRef {
4173
4173
let llfty = type_of_fn_from_ty ( ccx, node_type) ;
4174
- register_fn_fuller ( ccx, sp, path, flav , node_id, node_type,
4174
+ register_fn_fuller ( ccx, sp, path, node_id, node_type,
4175
4175
lib:: llvm:: CCallConv , llfty)
4176
4176
}
4177
4177
4178
- fn register_fn_fuller ( ccx : @crate_ctxt , sp : span , path : path , _flav : str ,
4178
+ fn register_fn_fuller ( ccx : @crate_ctxt , sp : span , path : path ,
4179
4179
node_id : ast:: node_id , node_type : ty:: t ,
4180
4180
cc : lib:: llvm:: CallConv , llfty : TypeRef ) -> ValueRef {
4181
4181
let ps: str = mangle_exported_name ( ccx, path, node_type) ;
@@ -4316,7 +4316,7 @@ fn get_item_val(ccx: @crate_ctxt, id: ast::node_id) -> ValueRef {
4316
4316
}
4317
4317
ast:: item_fn ( decl, _, _) {
4318
4318
let llfn = if decl. purity != ast:: crust_fn {
4319
- register_fn ( ccx, i. span , my_path, "fn" , i. id )
4319
+ register_fn ( ccx, i. span , my_path, i. id )
4320
4320
} else {
4321
4321
native:: register_crust_fn ( ccx, i. span , my_path, i. id )
4322
4322
} ;
@@ -4331,7 +4331,7 @@ fn get_item_val(ccx: @crate_ctxt, id: ast::node_id) -> ValueRef {
4331
4331
// find the dtor symbol.
4332
4332
let t = ty:: node_id_to_type ( ccx. tcx , dtor_id) ;
4333
4333
register_fn_full ( ccx, i. span , my_path + [ path_name ( "dtor" ) ] ,
4334
- "res_dtor" , i. id , t)
4334
+ i. id , t)
4335
4335
}
4336
4336
}
4337
4337
}
@@ -4340,8 +4340,7 @@ fn get_item_val(ccx: @crate_ctxt, id: ast::node_id) -> ValueRef {
4340
4340
let mty = ty:: node_id_to_type ( ccx. tcx , id) ;
4341
4341
let pth = * pth + [ path_name ( ccx. names ( "meth" ) ) ,
4342
4342
path_name ( m. ident ) ] ;
4343
- let llfn = register_fn_full ( ccx, m. span , pth, "impl_method" ,
4344
- id, mty) ;
4343
+ let llfn = register_fn_full ( ccx, m. span , pth, id, mty) ;
4345
4344
set_inline_hint_if_appr ( m. attrs , llfn) ;
4346
4345
llfn
4347
4346
}
@@ -4353,13 +4352,12 @@ fn get_item_val(ccx: @crate_ctxt, id: ast::node_id) -> ValueRef {
4353
4352
alt check i. node {
4354
4353
ast:: item_res ( _, _, _, _, _) {
4355
4354
let my_path = item_path ( ccx, i) ;
4356
- let llctor = register_fn ( ccx, i. span , my_path, "res_ctor" ,
4357
- id) ;
4355
+ let llctor = register_fn ( ccx, i. span , my_path, id) ;
4358
4356
set_inline_hint ( llctor) ;
4359
4357
llctor
4360
4358
}
4361
4359
ast:: item_class ( _, _, ctor) {
4362
- register_fn ( ccx, i. span , item_path ( ccx, i) , "ctor" , id)
4360
+ register_fn ( ccx, i. span , item_path ( ccx, i) , id)
4363
4361
}
4364
4362
}
4365
4363
}
@@ -4368,7 +4366,7 @@ fn get_item_val(ccx: @crate_ctxt, id: ast::node_id) -> ValueRef {
4368
4366
let pth = * pth + [ path_name ( enm. ident ) , path_name ( v. node . name ) ] ;
4369
4367
let llfn = alt check enm. node {
4370
4368
ast:: item_enum ( _, _) {
4371
- register_fn ( ccx, v. span , pth, "enum" , id)
4369
+ register_fn ( ccx, v. span , pth, id)
4372
4370
}
4373
4371
} ;
4374
4372
set_inline_hint ( llfn) ;
0 commit comments