@@ -9,20 +9,12 @@ use lib::llvm::{type_names, ModuleRef, ValueRef, TypeRef};
9
9
10
10
type upcalls =
11
11
{ trace : ValueRef ,
12
- malloc : ValueRef ,
13
- free : ValueRef ,
14
- exchange_malloc : ValueRef ,
15
- exchange_free : ValueRef ,
16
- validate_box : ValueRef ,
17
- log_type : ValueRef ,
18
12
call_shim_on_c_stack : ValueRef ,
19
13
call_shim_on_rust_stack : ValueRef ,
20
14
rust_personality : ValueRef ,
21
15
reset_stack_limit : ValueRef } ;
22
16
23
17
fn declare_upcalls ( targ_cfg : @session:: config ,
24
- _tn : type_names ,
25
- tydesc_type : TypeRef ,
26
18
llmod : ModuleRef ) -> @upcalls {
27
19
fn decl ( llmod : ModuleRef , prefix : ~str , name : ~str ,
28
20
tys : ~[ TypeRef ] , rv : TypeRef ) ->
@@ -42,23 +34,6 @@ fn declare_upcalls(targ_cfg: @session::config,
42
34
return @{ trace : dv( ~"trace", ~[ T_ptr ( T_i8 ( ) ) ,
43
35
T_ptr ( T_i8 ( ) ) ,
44
36
int_t] ) ,
45
- malloc:
46
- nothrow ( d ( ~"malloc",
47
- ~[ T_ptr ( tydesc_type) , int_t] ,
48
- T_ptr ( T_i8 ( ) ) ) ) ,
49
- free:
50
- nothrow ( dv ( ~"free", ~[ T_ptr ( T_i8 ( ) ) ] ) ) ,
51
- exchange_malloc:
52
- nothrow ( d ( ~"exchange_malloc",
53
- ~[ T_ptr ( tydesc_type) , int_t] ,
54
- T_ptr ( T_i8 ( ) ) ) ) ,
55
- exchange_free:
56
- nothrow ( dv ( ~"exchange_free", ~[ T_ptr ( T_i8 ( ) ) ] ) ) ,
57
- validate_box:
58
- nothrow ( dv ( ~"validate_box", ~[ T_ptr ( T_i8 ( ) ) ] ) ) ,
59
- log_type:
60
- dv ( ~"log_type", ~[ T_ptr ( tydesc_type) ,
61
- T_ptr ( T_i8 ( ) ) , T_i32 ( ) ] ) ,
62
37
call_shim_on_c_stack:
63
38
d( ~"call_shim_on_c_stack",
64
39
// arguments: void *args, void *fn_ptr
0 commit comments