Remove a android hack

This commit is contained in:
ILyoan 2013-04-03 14:42:50 +09:00
parent 84c296b27d
commit f06404860c

View File

@ -2284,16 +2284,6 @@ fn create_entry_fn(ccx: @CrateContext, rust_main: ValueRef) {
let opaque_crate_map = llvm::LLVMBuildPointerCast(
bld, crate_map, T_ptr(T_i8()), noname());
if *ccx.sess.building_library {
~[
retptr,
C_null(T_opaque_box_ptr(ccx)),
opaque_rust_main,
llvm::LLVMConstInt(T_i32(), 0u as c_ulonglong, False),
llvm::LLVMConstInt(T_i32(), 0u as c_ulonglong, False),
opaque_crate_map
]
} else {
~[
retptr,
C_null(T_opaque_box_ptr(ccx)),
@ -2302,7 +2292,6 @@ fn create_entry_fn(ccx: @CrateContext, rust_main: ValueRef) {
llvm::LLVMGetParam(llfn, 1 as c_uint),
opaque_crate_map
]
}
};
unsafe {