Remove spawn_wrap and main_wrap kludges

This isn't needed now that our functions are cdecl (and was apparently
only still working by accident).

Issue #992
This commit is contained in:
Marijn Haverbeke 2011-10-14 20:54:11 +02:00
parent 243c5c3479
commit e927df17f7
5 changed files with 10 additions and 41 deletions

View file

@ -5662,7 +5662,7 @@ fn create_main_wrapper(ccx: @crate_ctxt, sp: span, main_llfn: ValueRef,
let llfty = type_of_fn(ccx, sp, ast::proto_fn, false, false,
[vecarg_ty], nt, 0u);
let llfdecl = decl_fn(ccx.llmod, "_rust_main",
lib::llvm::LLVMFastCallConv, llfty);
lib::llvm::LLVMCCallConv, llfty);
let fcx = new_fn_ctxt(new_local_ctxt(ccx), sp, llfdecl);