1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +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:
NAKAMURA Takumi 2011-01-27 03:20:19 +00:00
parent 7001cac6c5
commit d418ff3b1a

View File

@ -532,7 +532,7 @@ void X86DAGToDAGISel::EmitSpecialCodeForMain(MachineBasicBlock *BB,
const TargetInstrInfo *TII = TM.getInstrInfo(); const TargetInstrInfo *TII = TM.getInstrInfo();
if (Subtarget->isTargetCygMing()) { if (Subtarget->isTargetCygMing()) {
unsigned CallOp = unsigned CallOp =
Subtarget->is64Bit() ? X86::CALL64pcrel32 : X86::CALLpcrel32; Subtarget->is64Bit() ? X86::WINCALL64pcrel32 : X86::CALLpcrel32;
BuildMI(BB, DebugLoc(), BuildMI(BB, DebugLoc(),
TII->get(CallOp)).addExternalSymbol("__main"); TII->get(CallOp)).addExternalSymbol("__main");
} }