Skip to content

Commit 4a86540

Browse files
committed
rustc: Remove a bunch of unused upcalls
1 parent 23880da commit 4a86540

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

src/rustc/back/upcall.rs

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,12 @@ use middle::trans::common::{T_fn, T_i1, T_i8, T_i32,
88
use lib::llvm::{type_names, ModuleRef, ValueRef, TypeRef};
99

1010
type upcalls =
11-
{_fail: ValueRef,
12-
trace: ValueRef,
11+
{trace: ValueRef,
1312
malloc: ValueRef,
1413
free: ValueRef,
1514
exchange_malloc: ValueRef,
1615
exchange_free: ValueRef,
1716
validate_box: ValueRef,
18-
mark: ValueRef,
19-
str_new_uniq: ValueRef,
20-
str_new_shared: ValueRef,
2117
log_type: ValueRef,
2218
call_shim_on_c_stack: ValueRef,
2319
call_shim_on_rust_stack: ValueRef,
@@ -45,10 +41,7 @@ fn declare_upcalls(targ_cfg: @session::config,
4541
let int_t = T_int(targ_cfg);
4642
let size_t = T_size_t(targ_cfg);
4743

48-
return @{_fail: dv(~"fail", ~[T_ptr(T_i8()),
49-
T_ptr(T_i8()),
50-
size_t]),
51-
trace: dv(~"trace", ~[T_ptr(T_i8()),
44+
return @{trace: dv(~"trace", ~[T_ptr(T_i8()),
5245
T_ptr(T_i8()),
5346
int_t]),
5447
malloc:
@@ -65,14 +58,6 @@ fn declare_upcalls(targ_cfg: @session::config,
6558
nothrow(dv(~"exchange_free", ~[T_ptr(T_i8())])),
6659
validate_box:
6760
nothrow(dv(~"validate_box", ~[T_ptr(T_i8())])),
68-
mark:
69-
d(~"mark", ~[T_ptr(T_i8())], int_t),
70-
str_new_uniq:
71-
nothrow(d(~"str_new_uniq", ~[T_ptr(T_i8()), int_t],
72-
T_ptr(T_i8()))),
73-
str_new_shared:
74-
nothrow(d(~"str_new_shared", ~[T_ptr(T_i8()), int_t],
75-
T_ptr(T_i8()))),
7661
log_type:
7762
dv(~"log_type", ~[T_ptr(tydesc_type),
7863
T_ptr(T_i8()), T_i32()]),

0 commit comments

Comments
 (0)