Skip to content

Commit 381ba1d

Browse files
committed
Remove redundant secondary declaration of glue.
1 parent 7e43a31 commit 381ba1d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/comp/middle/trans.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,20 +1781,8 @@ fn get_static_tydesc(&@block_ctxt cx,
17811781
fn declare_tydesc(&@local_ctxt cx, &ast::span sp, &ty::t t,
17821782
vec[uint] ty_params) -> @tydesc_info {
17831783
log "+++ declare_tydesc " + ty::ty_to_str(cx.ccx.tcx, t);
1784-
auto take_glue = declare_generic_glue(cx, t, T_glue_fn(cx.ccx.tn),
1785-
"take");
1786-
auto drop_glue = declare_generic_glue(cx, t, T_glue_fn(cx.ccx.tn),
1787-
"drop");
1788-
auto free_glue = declare_generic_glue(cx, t, T_glue_fn(cx.ccx.tn),
1789-
"free");
1790-
auto cmp_glue = declare_generic_glue(cx, t, T_cmp_glue_fn(cx.ccx.tn),
1791-
"cmp");
17921784
auto ccx = cx.ccx;
17931785

1794-
// Don't inline free glue; it's cold.
1795-
llvm::LLVMAddFunctionAttr(free_glue, lib::llvm::LLVMNoInlineAttribute as
1796-
lib::llvm::llvm::Attribute);
1797-
17981786
auto llsize;
17991787
auto llalign;
18001788
if (!ty::type_has_dynamic_size(ccx.tcx, t)) {

0 commit comments

Comments
 (0)