diff options
| author | Eric Christopher <echristo@apple.com> | 2010-09-27 06:01:51 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2010-09-27 06:01:51 +0000 |
| commit | b2cca2e6d7ef6832e8c4a714866f43bd41518a75 (patch) | |
| tree | 236372b8797b79b12f4559b3f2bb323b92b0a1b0 | |
| parent | fde20ce0a3f79325e1908372cddee8d05a57a287 (diff) | |
| download | external_llvm-b2cca2e6d7ef6832e8c4a714866f43bd41518a75.zip external_llvm-b2cca2e6d7ef6832e8c4a714866f43bd41518a75.tar.gz external_llvm-b2cca2e6d7ef6832e8c4a714866f43bd41518a75.tar.bz2 | |
This code should never fire on non-darwin subtargets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114811 91177308-0d34-0410-b5e6-96231b3b80d8
| -rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 28bc10a..8d15067 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -9660,8 +9660,8 @@ X86TargetLowering::EmitLoweredTLSCall(MachineInstr *MI, = static_cast<const X86InstrInfo*>(getTargetMachine().getInstrInfo()); DebugLoc DL = MI->getDebugLoc(); 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"); if (Subtarget->is64Bit()) { @@ -9672,7 +9672,7 @@ X86TargetLowering::EmitLoweredTLSCall(MachineInstr *MI, .addGlobalAddress(MI->getOperand(3).getGlobal(), 0, MI->getOperand(3).getTargetFlags()) .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); } else if (getTargetMachine().getRelocationModel() != Reloc::PIC_) { MachineInstrBuilder MIB = BuildMI(*BB, MI, DL, |
