[PowerPC] Remove unused parameter

The isDarwin parameter to the llvm::LowerPPCMachineInstrToMCInst
routine is now no longer needed; remove it.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184441 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ulrich Weigand 2013-06-20 16:58:14 +00:00
parent dc4dcb6762
commit ea18f0cc4d
3 changed files with 14 additions and 14 deletions

View File

@ -40,7 +40,7 @@ namespace llvm {
FunctionPass *createPPCJITCodeEmitterPass(PPCTargetMachine &TM, FunctionPass *createPPCJITCodeEmitterPass(PPCTargetMachine &TM,
JITCodeEmitter &MCE); JITCodeEmitter &MCE);
void LowerPPCMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI, void LowerPPCMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
AsmPrinter &AP, bool isDarwin); AsmPrinter &AP);
/// \brief Creates an PPC-specific Target Transformation Info pass. /// \brief Creates an PPC-specific Target Transformation Info pass.
ImmutablePass *createPPCTargetTransformInfoPass(const PPCTargetMachine *TM); ImmutablePass *createPPCTargetTransformInfoPass(const PPCTargetMachine *TM);

View File

@ -352,7 +352,7 @@ void PPCAsmPrinter::EmitInstruction(const MachineInstr *MI) {
case PPC::LDtocCPT: case PPC::LDtocCPT:
case PPC::LDtoc: { case PPC::LDtoc: {
// Transform %X3 = LDtoc <ga:@min1>, %X2 // Transform %X3 = LDtoc <ga:@min1>, %X2
LowerPPCMachineInstrToMCInst(MI, TmpInst, *this, Subtarget.isDarwin()); LowerPPCMachineInstrToMCInst(MI, TmpInst, *this);
// Change the opcode to LD, and the global address operand to be a // Change the opcode to LD, and the global address operand to be a
// reference to the TOC entry we will synthesize later. // reference to the TOC entry we will synthesize later.
@ -381,7 +381,7 @@ void PPCAsmPrinter::EmitInstruction(const MachineInstr *MI) {
case PPC::ADDIStocHA: { case PPC::ADDIStocHA: {
// Transform %Xd = ADDIStocHA %X2, <ga:@sym> // Transform %Xd = ADDIStocHA %X2, <ga:@sym>
LowerPPCMachineInstrToMCInst(MI, TmpInst, *this, Subtarget.isDarwin()); LowerPPCMachineInstrToMCInst(MI, TmpInst, *this);
// Change the opcode to ADDIS8. If the global address is external, // Change the opcode to ADDIS8. If the global address is external,
// has common linkage, is a function address, or is a jump table // has common linkage, is a function address, or is a jump table
@ -425,7 +425,7 @@ void PPCAsmPrinter::EmitInstruction(const MachineInstr *MI) {
} }
case PPC::LDtocL: { case PPC::LDtocL: {
// Transform %Xd = LDtocL <ga:@sym>, %Xs // Transform %Xd = LDtocL <ga:@sym>, %Xs
LowerPPCMachineInstrToMCInst(MI, TmpInst, *this, Subtarget.isDarwin()); LowerPPCMachineInstrToMCInst(MI, TmpInst, *this);
// Change the opcode to LD. If the global address is external, has // Change the opcode to LD. If the global address is external, has
// common linkage, or is a jump table address, then reference the // common linkage, or is a jump table address, then reference the
@ -462,7 +462,7 @@ void PPCAsmPrinter::EmitInstruction(const MachineInstr *MI) {
} }
case PPC::ADDItocL: { case PPC::ADDItocL: {
// Transform %Xd = ADDItocL %Xs, <ga:@sym> // Transform %Xd = ADDItocL %Xs, <ga:@sym>
LowerPPCMachineInstrToMCInst(MI, TmpInst, *this, Subtarget.isDarwin()); LowerPPCMachineInstrToMCInst(MI, TmpInst, *this);
// Change the opcode to ADDI8. If the global address is external, then // Change the opcode to ADDI8. If the global address is external, then
// generate a TOC entry and reference that. Otherwise reference the // generate a TOC entry and reference that. Otherwise reference the
@ -514,7 +514,7 @@ void PPCAsmPrinter::EmitInstruction(const MachineInstr *MI) {
} }
case PPC::LDgotTprelL: { case PPC::LDgotTprelL: {
// Transform %Xd = LDgotTprelL <ga:@sym>, %Xs // Transform %Xd = LDgotTprelL <ga:@sym>, %Xs
LowerPPCMachineInstrToMCInst(MI, TmpInst, *this, Subtarget.isDarwin()); LowerPPCMachineInstrToMCInst(MI, TmpInst, *this);
// Change the opcode to LD. // Change the opcode to LD.
TmpInst.setOpcode(PPC::LD); TmpInst.setOpcode(PPC::LD);
@ -681,7 +681,7 @@ void PPCAsmPrinter::EmitInstruction(const MachineInstr *MI) {
} }
} }
LowerPPCMachineInstrToMCInst(MI, TmpInst, *this, Subtarget.isDarwin()); LowerPPCMachineInstrToMCInst(MI, TmpInst, *this);
OutStreamer.EmitInstruction(TmpInst); OutStreamer.EmitInstruction(TmpInst);
} }

View File

@ -105,7 +105,7 @@ static MCSymbol *GetSymbolFromOperand(const MachineOperand &MO, AsmPrinter &AP){
} }
static MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol, static MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol,
AsmPrinter &Printer, bool isDarwin) { AsmPrinter &Printer) {
MCContext &Ctx = Printer.OutContext; MCContext &Ctx = Printer.OutContext;
MCSymbolRefExpr::VariantKind RefKind = MCSymbolRefExpr::VK_None; MCSymbolRefExpr::VariantKind RefKind = MCSymbolRefExpr::VK_None;
@ -158,7 +158,7 @@ static MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol,
} }
void llvm::LowerPPCMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI, void llvm::LowerPPCMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
AsmPrinter &AP, bool isDarwin) { AsmPrinter &AP) {
OutMI.setOpcode(MI->getOpcode()); OutMI.setOpcode(MI->getOpcode());
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
@ -182,17 +182,17 @@ void llvm::LowerPPCMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
break; break;
case MachineOperand::MO_GlobalAddress: case MachineOperand::MO_GlobalAddress:
case MachineOperand::MO_ExternalSymbol: case MachineOperand::MO_ExternalSymbol:
MCOp = GetSymbolRef(MO, GetSymbolFromOperand(MO, AP), AP, isDarwin); MCOp = GetSymbolRef(MO, GetSymbolFromOperand(MO, AP), AP);
break; break;
case MachineOperand::MO_JumpTableIndex: case MachineOperand::MO_JumpTableIndex:
MCOp = GetSymbolRef(MO, AP.GetJTISymbol(MO.getIndex()), AP, isDarwin); MCOp = GetSymbolRef(MO, AP.GetJTISymbol(MO.getIndex()), AP);
break; break;
case MachineOperand::MO_ConstantPoolIndex: case MachineOperand::MO_ConstantPoolIndex:
MCOp = GetSymbolRef(MO, AP.GetCPISymbol(MO.getIndex()), AP, isDarwin); MCOp = GetSymbolRef(MO, AP.GetCPISymbol(MO.getIndex()), AP);
break; break;
case MachineOperand::MO_BlockAddress: case MachineOperand::MO_BlockAddress:
MCOp = GetSymbolRef(MO,AP.GetBlockAddressSymbol(MO.getBlockAddress()),AP, MCOp = GetSymbolRef(MO, AP.GetBlockAddressSymbol(MO.getBlockAddress()),
isDarwin); AP);
break; break;
case MachineOperand::MO_RegisterMask: case MachineOperand::MO_RegisterMask:
continue; continue;