about summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-08-09 17:01:38 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-08-09 17:02:17 -0700
commit865ca749dc93e70a10d2d00bb709aaccdc34a2ba (patch)
treec126ec6437c3176e15f2420fa943332188ed25df /src/comp
parenta73a0dd74eed79dbeb861faf69c35994589bc3b2 (diff)
downloadrust-865ca749dc93e70a10d2d00bb709aaccdc34a2ba.tar.gz
rust-865ca749dc93e70a10d2d00bb709aaccdc34a2ba.zip
rustc: Use shapes instead of codegen'd cmp glue
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/middle/trans.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index 01a1101b369..94f54331914 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -2240,13 +2240,7 @@ fn lazily_emit_tydesc_glue(cx: &@block_ctxt, field: int,
               none. {
                 log #fmt("+++ lazily_emit_tydesc_glue CMP %s",
                          ty_to_str(bcx_tcx(cx), ti.ty));
-                let lcx = cx.fcx.lcx;
-                let glue_fn =
-                    declare_generic_glue(lcx, ti.ty, T_cmp_glue_fn(*lcx.ccx),
-                                         "cmp");
-                ti.cmp_glue = some[ValueRef](glue_fn);
-                make_generic_glue(lcx, cx.sp, ti.ty, glue_fn, mgghf_cmp,
-                                  ti.ty_params, "cmp");
+                ti.cmp_glue = some(bcx_ccx(cx).upcalls.cmp_type);
                 log #fmt("--- lazily_emit_tydesc_glue CMP %s",
                          ty_to_str(bcx_tcx(cx), ti.ty));
               }