Skip to content

Commit 8200e03

Browse files
committed
---
yaml --- r: 36218 b: refs/heads/try2 c: bc3f89e h: refs/heads/master v: v3
1 parent 4d68237 commit 8200e03

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 449f4fbb07861c133f2b7f4797edbe9b6e238940
8+
refs/heads/try2: bc3f89e92bfba43c193fbd928f1502209157431c
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try2/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/try2/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)