[llvm] r228728 - Fix up r228725, missed change in PPCSubtarget definition
Bill Schmidt
wschmidt at linux.vnet.ibm.com
Tue Feb 10 11:31:55 PST 2015
Author: wschmidt
Date: Tue Feb 10 13:31:55 2015
New Revision: 228728
URL: http://llvm.org/viewvc/llvm-project?rev=228728&view=rev
Log:
Fix up r228725, missed change in PPCSubtarget definition
Modified:
llvm/trunk/lib/Target/PowerPC/PPCAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCAsmPrinter.cpp?rev=228728&r1=228727&r2=228728&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCAsmPrinter.cpp Tue Feb 10 13:31:55 2015
@@ -416,15 +416,15 @@ void PPCAsmPrinter::EmitTlsCall(const Ma
MCSymbolRefExpr::VariantKind Kind = MCSymbolRefExpr::VK_None;
assert(MI->getOperand(0).isReg() &&
- ((Subtarget.isPPC64() && MI->getOperand(0).getReg() == PPC::X3) ||
- (!Subtarget.isPPC64() && MI->getOperand(0).getReg() == PPC::R3)) &&
+ ((Subtarget->isPPC64() && MI->getOperand(0).getReg() == PPC::X3) ||
+ (!Subtarget->isPPC64() && MI->getOperand(0).getReg() == PPC::R3)) &&
"GETtls[ld]ADDR[32] must define GPR3");
assert(MI->getOperand(1).isReg() &&
- ((Subtarget.isPPC64() && MI->getOperand(1).getReg() == PPC::X3) ||
- (!Subtarget.isPPC64() && MI->getOperand(1).getReg() == PPC::R3)) &&
+ ((Subtarget->isPPC64() && MI->getOperand(1).getReg() == PPC::X3) ||
+ (!Subtarget->isPPC64() && MI->getOperand(1).getReg() == PPC::R3)) &&
"GETtls[ld]ADDR[32] must read GPR3");
- if (!Subtarget.isPPC64() && !Subtarget.isDarwin() &&
+ if (!Subtarget->isPPC64() && !Subtarget->isDarwin() &&
TM.getRelocationModel() == Reloc::PIC_)
Kind = MCSymbolRefExpr::VK_PLT;
const MCSymbolRefExpr *TlsRef =
@@ -434,7 +434,7 @@ void PPCAsmPrinter::EmitTlsCall(const Ma
MCSymbol *MOSymbol = getSymbol(GValue);
const MCExpr *SymVar = MCSymbolRefExpr::Create(MOSymbol, VK, OutContext);
EmitToStreamer(OutStreamer,
- MCInstBuilder(Subtarget.isPPC64() ?
+ MCInstBuilder(Subtarget->isPPC64() ?
PPC::BL8_NOP_TLS : PPC::BL_TLS)
.addExpr(TlsRef)
.addExpr(SymVar));
More information about the llvm-commits
mailing list