Skip to content

Commit b2e288a

Browse files
committed
---
yaml --- r: 38883 b: refs/heads/incoming c: bc3f89e h: refs/heads/master i: 38881: 3d8a3f6 38879: 9a0cf68 v: v3
1 parent a3077ed commit b2e288a

File tree

3 files changed

+2
-28
lines changed

3 files changed

+2
-28
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
9-
refs/heads/incoming: 449f4fbb07861c133f2b7f4797edbe9b6e238940
9+
refs/heads/incoming: bc3f89e92bfba43c193fbd928f1502209157431c
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/rustc/back/upcall.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,12 @@ use lib::llvm::{type_names, ModuleRef, ValueRef, TypeRef};
99

1010
type upcalls =
1111
{trace: ValueRef,
12-
malloc: ValueRef,
13-
free: ValueRef,
14-
exchange_malloc: ValueRef,
15-
exchange_free: ValueRef,
16-
validate_box: ValueRef,
17-
log_type: ValueRef,
1812
call_shim_on_c_stack: ValueRef,
1913
call_shim_on_rust_stack: ValueRef,
2014
rust_personality: ValueRef,
2115
reset_stack_limit: ValueRef};
2216

2317
fn declare_upcalls(targ_cfg: @session::config,
24-
_tn: type_names,
25-
tydesc_type: TypeRef,
2618
llmod: ModuleRef) -> @upcalls {
2719
fn decl(llmod: ModuleRef, prefix: ~str, name: ~str,
2820
tys: ~[TypeRef], rv: TypeRef) ->
@@ -42,23 +34,6 @@ fn declare_upcalls(targ_cfg: @session::config,
4234
return @{trace: dv(~"trace", ~[T_ptr(T_i8()),
4335
T_ptr(T_i8()),
4436
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()]),
6237
call_shim_on_c_stack:
6338
d(~"call_shim_on_c_stack",
6439
// arguments: void *args, void *fn_ptr

branches/incoming/src/rustc/middle/trans/base.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2711,8 +2711,7 @@ fn trans_crate(sess: session::Session,
27112711
llvm_insns: HashMap(),
27122712
fn_times: @mut ~[]},
27132713
upcalls:
2714-
upcall::declare_upcalls(targ_cfg, tn, tydesc_type,
2715-
llmod),
2714+
upcall::declare_upcalls(targ_cfg, llmod),
27162715
rtcalls: HashMap(),
27172716
tydesc_type: tydesc_type,
27182717
int_type: int_type,

0 commit comments

Comments
 (0)