提交 865ca749 编写于 作者: P Patrick Walton

rustc: Use shapes instead of codegen'd cmp glue

上级 a73a0dd7
...@@ -2240,13 +2240,7 @@ fn lazily_emit_tydesc_glue(cx: &@block_ctxt, field: int, ...@@ -2240,13 +2240,7 @@ fn lazily_emit_tydesc_glue(cx: &@block_ctxt, field: int,
none. { none. {
log #fmt("+++ lazily_emit_tydesc_glue CMP %s", log #fmt("+++ lazily_emit_tydesc_glue CMP %s",
ty_to_str(bcx_tcx(cx), ti.ty)); ty_to_str(bcx_tcx(cx), ti.ty));
let lcx = cx.fcx.lcx; ti.cmp_glue = some(bcx_ccx(cx).upcalls.cmp_type);
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");
log #fmt("--- lazily_emit_tydesc_glue CMP %s", log #fmt("--- lazily_emit_tydesc_glue CMP %s",
ty_to_str(bcx_tcx(cx), ti.ty)); ty_to_str(bcx_tcx(cx), ti.ty));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册