Skip to content

Commit 96473f7

Browse files
committed
---
yaml --- r: 32534 b: refs/heads/dist-snap c: 23880da h: refs/heads/master v: v3
1 parent 4361d07 commit 96473f7

File tree

4 files changed

+1
-35
lines changed

4 files changed

+1
-35
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10-
refs/heads/dist-snap: cd8ec6d9236867d3f088432033f56b6ad29c15a7
10+
refs/heads/dist-snap: 23880daef2fbdfc01f8651fa8e84eb9700cceb3c
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/dist-snap/src/rustc/back/abi.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ const tydesc_field_shape: uint = 6u;
4343
const tydesc_field_shape_tables: uint = 7u;
4444
const n_tydesc_fields: uint = 8u;
4545

46-
const cmp_glue_op_eq: uint = 0u;
47-
48-
const cmp_glue_op_lt: uint = 1u;
49-
50-
const cmp_glue_op_le: uint = 2u;
51-
5246
// The two halves of a closure: code and environment.
5347
const fn_field_code: uint = 0u;
5448
const fn_field_box: uint = 1u;

branches/dist-snap/src/rustc/back/upcall.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ type upcalls =
1818
mark: ValueRef,
1919
str_new_uniq: ValueRef,
2020
str_new_shared: ValueRef,
21-
cmp_type: ValueRef,
2221
log_type: ValueRef,
2322
call_shim_on_c_stack: ValueRef,
2423
call_shim_on_rust_stack: ValueRef,
@@ -74,12 +73,6 @@ fn declare_upcalls(targ_cfg: @session::config,
7473
str_new_shared:
7574
nothrow(d(~"str_new_shared", ~[T_ptr(T_i8()), int_t],
7675
T_ptr(T_i8()))),
77-
cmp_type:
78-
dv(~"cmp_type",
79-
~[T_ptr(T_i1()), T_ptr(tydesc_type),
80-
T_ptr(T_i8()),
81-
T_ptr(T_i8()),
82-
T_i8()]),
8376
log_type:
8477
dv(~"log_type", ~[T_ptr(tydesc_type),
8578
T_ptr(T_i8()), T_i32()]),

branches/dist-snap/src/rustc/middle/trans/glue.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -253,27 +253,6 @@ fn call_tydesc_glue(++cx: block, v: ValueRef, t: ty::t, field: uint)
253253
return cx;
254254
}
255255

256-
fn call_cmp_glue(bcx: block, lhs: ValueRef, rhs: ValueRef, t: ty::t,
257-
llop: ValueRef) -> ValueRef {
258-
// We can't use call_tydesc_glue_full() and friends here because compare
259-
// glue has a special signature.
260-
let _icx = bcx.insn_ctxt("call_cmp_glue");
261-
262-
let lllhs = spill_if_immediate(bcx, lhs, t);
263-
let llrhs = spill_if_immediate(bcx, rhs, t);
264-
265-
let llrawlhsptr = BitCast(bcx, lllhs, T_ptr(T_i8()));
266-
let llrawrhsptr = BitCast(bcx, llrhs, T_ptr(T_i8()));
267-
let lltydesc = get_tydesc_simple(bcx.ccx(), t);
268-
269-
let llfn = bcx.ccx().upcalls.cmp_type;
270-
271-
let llcmpresultptr = alloca(bcx, T_i1());
272-
Call(bcx, llfn, ~[llcmpresultptr, lltydesc,
273-
llrawlhsptr, llrawrhsptr, llop]);
274-
return Load(bcx, llcmpresultptr);
275-
}
276-
277256
fn make_visit_glue(bcx: block, v: ValueRef, t: ty::t) {
278257
let _icx = bcx.insn_ctxt("make_visit_glue");
279258
let mut bcx = bcx;

0 commit comments

Comments
 (0)