File tree 1 file changed +4
-12
lines changed
src/librustc/middle/trans
1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -2366,20 +2366,12 @@ pub fn create_entry_wrapper(ccx: @mut CrateContext,
2366
2366
& ccx. int_type ) ;
2367
2367
2368
2368
// FIXME #4404 android JNI hacks
2369
- let llfn = if * ccx. sess . building_library {
2370
- decl_cdecl_fn ( ccx . llmod , "amain" , llfty )
2369
+ let main_name = if * ccx. sess . building_library {
2370
+ "amain"
2371
2371
} else {
2372
- let main_name = match ccx. sess . targ_cfg . os {
2373
- session:: os_win32 => {
2374
- match ccx. sess . targ_cfg . arch {
2375
- X86 => ~"WinMain @16 ",
2376
- _ => ~"WinMain ",
2377
- }
2378
- } ,
2379
- _ => ~"main",
2380
- } ;
2381
- decl_cdecl_fn ( ccx. llmod , main_name, llfty)
2372
+ "main"
2382
2373
} ;
2374
+ let llfn = decl_cdecl_fn ( ccx. llmod , main_name, llfty) ;
2383
2375
let llbb = do "top" . with_c_str |buf| {
2384
2376
unsafe {
2385
2377
llvm:: LLVMAppendBasicBlockInContext ( ccx. llcx , llfn, buf)
You can’t perform that action at this time.
0 commit comments