File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
src/librustc/middle/trans Expand file tree Collapse file tree 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,
23662366 & ccx. int_type ) ;
23672367
23682368 // 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"
23712371 } 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"
23822373 } ;
2374+ let llfn = decl_cdecl_fn ( ccx. llmod , main_name, llfty) ;
23832375 let llbb = do "top" . with_c_str |buf| {
23842376 unsafe {
23852377 llvm:: LLVMAppendBasicBlockInContext ( ccx. llcx , llfn, buf)
You can’t perform that action at this time.
0 commit comments