auto merge of #10059 : thestinger/rust/glue, r=pcwalton

Closes #10045
This commit is contained in:
bors 2013-10-24 18:56:05 -07:00
commit c16a95c587
2 changed files with 0 additions and 7 deletions

View File

@ -534,12 +534,6 @@ pub fn set_no_split_stack(f: ValueRef) {
}
}
pub fn set_glue_inlining(f: ValueRef, t: ty::t) {
if ty::type_is_structural(t) {
set_optimize_for_size(f);
} else { set_always_inline(f); }
}
// Double-check that we never ask LLVM to declare the same symbol twice. It
// silently mangles such symbols, breaking our linkage model.
pub fn note_unique_llvm_symbol(ccx: &mut CrateContext, sym: @str) {

View File

@ -674,7 +674,6 @@ pub fn declare_generic_glue(ccx: &mut CrateContext, t: ty::t, llfnty: Type,
debug!("{} is for type {}", fn_nm, ppaux::ty_to_str(ccx.tcx, t));
note_unique_llvm_symbol(ccx, fn_nm);
let llfn = decl_cdecl_fn(ccx.llmod, fn_nm, llfnty);
set_glue_inlining(llfn, t);
return llfn;
}