diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2011-05-20 14:48:33 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-05-20 14:48:33 -0700 |
| commit | 381ba1d0babaee0def296cdd337dc911322234af (patch) | |
| tree | 47ebba48c09fd7839d3dbae6170e3e2634349329 | |
| parent | 7e43a31f0885353d7d028014261913f79e531f83 (diff) | |
Remove redundant secondary declaration of glue.
| -rw-r--r-- | src/comp/middle/trans.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index 23c74e06336..bb99a1794f3 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -1781,20 +1781,8 @@ fn get_static_tydesc(&@block_ctxt cx, fn declare_tydesc(&@local_ctxt cx, &ast::span sp, &ty::t t, vec[uint] ty_params) -> @tydesc_info { log "+++ declare_tydesc " + ty::ty_to_str(cx.ccx.tcx, t); - auto take_glue = declare_generic_glue(cx, t, T_glue_fn(cx.ccx.tn), - "take"); - auto drop_glue = declare_generic_glue(cx, t, T_glue_fn(cx.ccx.tn), - "drop"); - auto free_glue = declare_generic_glue(cx, t, T_glue_fn(cx.ccx.tn), - "free"); - auto cmp_glue = declare_generic_glue(cx, t, T_cmp_glue_fn(cx.ccx.tn), - "cmp"); auto ccx = cx.ccx; - // Don't inline free glue; it's cold. - llvm::LLVMAddFunctionAttr(free_glue, lib::llvm::LLVMNoInlineAttribute as - lib::llvm::llvm::Attribute); - auto llsize; auto llalign; if (!ty::type_has_dynamic_size(ccx.tcx, t)) { |
