mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
lib/Target/X86/X86ISelDAGToDAG.cpp: __main should be WINCALL64 on Win64.
CALL64 marks %xmm* as dead. llvm-svn: 124354
This commit is contained in:
parent
7001cac6c5
commit
d418ff3b1a
@ -532,7 +532,7 @@ void X86DAGToDAGISel::EmitSpecialCodeForMain(MachineBasicBlock *BB,
|
||||
const TargetInstrInfo *TII = TM.getInstrInfo();
|
||||
if (Subtarget->isTargetCygMing()) {
|
||||
unsigned CallOp =
|
||||
Subtarget->is64Bit() ? X86::CALL64pcrel32 : X86::CALLpcrel32;
|
||||
Subtarget->is64Bit() ? X86::WINCALL64pcrel32 : X86::CALLpcrel32;
|
||||
BuildMI(BB, DebugLoc(),
|
||||
TII->get(CallOp)).addExternalSymbol("__main");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user