mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
[PowerPC][NFC] Use inline Subtarget->isPPC64()
To be consistent with all the other instances. llvm-svn: 370428
This commit is contained in:
parent
3764a713a3
commit
8e64b4448a
@ -511,7 +511,6 @@ void PPCAsmPrinter::EmitTlsCall(const MachineInstr *MI,
|
||||
///
|
||||
void PPCAsmPrinter::EmitInstruction(const MachineInstr *MI) {
|
||||
MCInst TmpInst;
|
||||
bool isPPC64 = Subtarget->isPPC64();
|
||||
bool isDarwin = TM.getTargetTriple().isOSDarwin();
|
||||
const Module *M = MF->getFunction().getParent();
|
||||
PICLevel::Level PL = M->getPICLevel();
|
||||
@ -865,15 +864,15 @@ void PPCAsmPrinter::EmitInstruction(const MachineInstr *MI) {
|
||||
LowerPPCMachineInstrToMCInst(MI, TmpInst, *this, isDarwin);
|
||||
|
||||
// Change the opcode to LD.
|
||||
TmpInst.setOpcode(isPPC64 ? PPC::LD : PPC::LWZ);
|
||||
TmpInst.setOpcode(Subtarget->isPPC64() ? PPC::LD : PPC::LWZ);
|
||||
const MachineOperand &MO = MI->getOperand(1);
|
||||
const GlobalValue *GValue = MO.getGlobal();
|
||||
MCSymbol *MOSymbol = getSymbol(GValue);
|
||||
const MCExpr *Exp =
|
||||
MCSymbolRefExpr::create(MOSymbol,
|
||||
isPPC64 ? MCSymbolRefExpr::VK_PPC_GOT_TPREL_LO
|
||||
: MCSymbolRefExpr::VK_PPC_GOT_TPREL,
|
||||
OutContext);
|
||||
const MCExpr *Exp = MCSymbolRefExpr::create(
|
||||
MOSymbol,
|
||||
Subtarget->isPPC64() ? MCSymbolRefExpr::VK_PPC_GOT_TPREL_LO
|
||||
: MCSymbolRefExpr::VK_PPC_GOT_TPREL,
|
||||
OutContext);
|
||||
TmpInst.getOperand(1) = MCOperand::createExpr(Exp);
|
||||
EmitToStreamer(*OutStreamer, TmpInst);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user