mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 17:29:19 +00:00
lib/Target/X86/X86ISelDAGToDAG.cpp: __main should be WINCALL64 on Win64.
CALL64 marks %xmm* as dead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124354 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4789aca85e
commit
40ccb798cc
@ -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");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user