This code should never fire on non-darwin subtargets.
llvm-svn: 114811
This commit is contained in:
parent
176d286c96
commit
422e463be7
|
@ -9660,8 +9660,8 @@ X86TargetLowering::EmitLoweredTLSCall(MachineInstr *MI,
|
||||||
= static_cast<const X86InstrInfo*>(getTargetMachine().getInstrInfo());
|
= static_cast<const X86InstrInfo*>(getTargetMachine().getInstrInfo());
|
||||||
DebugLoc DL = MI->getDebugLoc();
|
DebugLoc DL = MI->getDebugLoc();
|
||||||
MachineFunction *F = BB->getParent();
|
MachineFunction *F = BB->getParent();
|
||||||
bool IsWin64 = Subtarget->isTargetWin64();
|
|
||||||
|
assert(Subtarget->isTargetDarwin() && "Darwin only instr emitted?");
|
||||||
assert(MI->getOperand(3).isGlobal() && "This should be a global");
|
assert(MI->getOperand(3).isGlobal() && "This should be a global");
|
||||||
|
|
||||||
if (Subtarget->is64Bit()) {
|
if (Subtarget->is64Bit()) {
|
||||||
|
@ -9672,7 +9672,7 @@ X86TargetLowering::EmitLoweredTLSCall(MachineInstr *MI,
|
||||||
.addGlobalAddress(MI->getOperand(3).getGlobal(), 0,
|
.addGlobalAddress(MI->getOperand(3).getGlobal(), 0,
|
||||||
MI->getOperand(3).getTargetFlags())
|
MI->getOperand(3).getTargetFlags())
|
||||||
.addReg(0);
|
.addReg(0);
|
||||||
MIB = BuildMI(*BB, MI, DL, TII->get(IsWin64 ? X86::WINCALL64m : X86::CALL64m));
|
MIB = BuildMI(*BB, MI, DL, TII->get(X86::CALL64m));
|
||||||
addDirectMem(MIB, X86::RDI);
|
addDirectMem(MIB, X86::RDI);
|
||||||
} else if (getTargetMachine().getRelocationModel() != Reloc::PIC_) {
|
} else if (getTargetMachine().getRelocationModel() != Reloc::PIC_) {
|
||||||
MachineInstrBuilder MIB = BuildMI(*BB, MI, DL,
|
MachineInstrBuilder MIB = BuildMI(*BB, MI, DL,
|
||||||
|
|
Loading…
Reference in New Issue