mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 23:48:56 +00:00
Remove unused Target argument from MCInstPrinter ctor functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233607 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
affc406350
commit
1c60a4e36b
@ -124,8 +124,7 @@ namespace llvm {
|
||||
typedef MCDisassembler *(*MCDisassemblerCtorTy)(const Target &T,
|
||||
const MCSubtargetInfo &STI,
|
||||
MCContext &Ctx);
|
||||
typedef MCInstPrinter *(*MCInstPrinterCtorTy)(const Target &T,
|
||||
unsigned SyntaxVariant,
|
||||
typedef MCInstPrinter *(*MCInstPrinterCtorTy)(unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI,
|
||||
const MCInstrInfo &MII,
|
||||
const MCRegisterInfo &MRI,
|
||||
@ -416,7 +415,7 @@ namespace llvm {
|
||||
const MCSubtargetInfo &STI) const {
|
||||
if (!MCInstPrinterCtorFn)
|
||||
return nullptr;
|
||||
return MCInstPrinterCtorFn(*this, SyntaxVariant, MAI, MII, MRI, STI);
|
||||
return MCInstPrinterCtorFn(SyntaxVariant, MAI, MII, MRI, STI);
|
||||
}
|
||||
|
||||
|
||||
|
@ -109,8 +109,7 @@ static MCCodeGenInfo *createAArch64MCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
return X;
|
||||
}
|
||||
|
||||
static MCInstPrinter *createAArch64MCInstPrinter(const Target &T,
|
||||
unsigned SyntaxVariant,
|
||||
static MCInstPrinter *createAArch64MCInstPrinter(unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI,
|
||||
const MCInstrInfo &MII,
|
||||
const MCRegisterInfo &MRI,
|
||||
|
@ -323,8 +323,7 @@ static MCStreamer *createARMMachOStreamer(MCContext &Ctx, MCAsmBackend &MAB,
|
||||
return createMachOStreamer(Ctx, MAB, OS, Emitter, false, DWARFMustBeAtTheEnd);
|
||||
}
|
||||
|
||||
static MCInstPrinter *createARMMCInstPrinter(const Target &T,
|
||||
unsigned SyntaxVariant,
|
||||
static MCInstPrinter *createARMMCInstPrinter(unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI,
|
||||
const MCInstrInfo &MII,
|
||||
const MCRegisterInfo &MRI,
|
||||
|
@ -68,10 +68,11 @@ static MCStreamer *createBPFMCStreamer(const Triple &T,
|
||||
return createELFStreamer(Ctx, MAB, OS, Emitter, RelaxAll);
|
||||
}
|
||||
|
||||
static MCInstPrinter *
|
||||
createBPFMCInstPrinter(const Target &T, unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI, const MCInstrInfo &MII,
|
||||
const MCRegisterInfo &MRI, const MCSubtargetInfo &STI) {
|
||||
static MCInstPrinter *createBPFMCInstPrinter(unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI,
|
||||
const MCInstrInfo &MII,
|
||||
const MCRegisterInfo &MRI,
|
||||
const MCSubtargetInfo &STI) {
|
||||
if (SyntaxVariant == 0)
|
||||
return new BPFInstPrinter(MAI, MII, MRI);
|
||||
return 0;
|
||||
|
@ -222,8 +222,7 @@ void HexagonAsmPrinter::EmitInstruction(const MachineInstr *MI) {
|
||||
return;
|
||||
}
|
||||
|
||||
static MCInstPrinter *createHexagonMCInstPrinter(const Target &T,
|
||||
unsigned SyntaxVariant,
|
||||
static MCInstPrinter *createHexagonMCInstPrinter(unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI,
|
||||
const MCInstrInfo &MII,
|
||||
const MCRegisterInfo &MRI,
|
||||
|
@ -75,8 +75,7 @@ static MCCodeGenInfo *createHexagonMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
X->InitMCCodeGenInfo(Reloc::Static, CM, OL);
|
||||
return X;
|
||||
}
|
||||
static MCInstPrinter *createHexagonMCInstPrinter(const Target &T,
|
||||
unsigned SyntaxVariant,
|
||||
static MCInstPrinter *createHexagonMCInstPrinter(unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI,
|
||||
const MCInstrInfo &MII,
|
||||
const MCRegisterInfo &MRI,
|
||||
|
@ -58,8 +58,7 @@ static MCCodeGenInfo *createMSP430MCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
return X;
|
||||
}
|
||||
|
||||
static MCInstPrinter *createMSP430MCInstPrinter(const Target &T,
|
||||
unsigned SyntaxVariant,
|
||||
static MCInstPrinter *createMSP430MCInstPrinter(unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI,
|
||||
const MCInstrInfo &MII,
|
||||
const MCRegisterInfo &MRI,
|
||||
|
@ -97,8 +97,7 @@ static MCCodeGenInfo *createMipsMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
return X;
|
||||
}
|
||||
|
||||
static MCInstPrinter *createMipsMCInstPrinter(const Target &T,
|
||||
unsigned SyntaxVariant,
|
||||
static MCInstPrinter *createMipsMCInstPrinter(unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI,
|
||||
const MCInstrInfo &MII,
|
||||
const MCRegisterInfo &MRI,
|
||||
|
@ -58,8 +58,7 @@ static MCCodeGenInfo *createNVPTXMCCodeGenInfo(
|
||||
return X;
|
||||
}
|
||||
|
||||
static MCInstPrinter *createNVPTXMCInstPrinter(const Target &T,
|
||||
unsigned SyntaxVariant,
|
||||
static MCInstPrinter *createNVPTXMCInstPrinter(unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI,
|
||||
const MCInstrInfo &MII,
|
||||
const MCRegisterInfo &MRI,
|
||||
|
@ -238,8 +238,7 @@ createObjectTargetStreamer(MCStreamer &S, const MCSubtargetInfo &STI) {
|
||||
return new PPCTargetMachOStreamer(S);
|
||||
}
|
||||
|
||||
static MCInstPrinter *createPPCMCInstPrinter(const Target &T,
|
||||
unsigned SyntaxVariant,
|
||||
static MCInstPrinter *createPPCMCInstPrinter(unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI,
|
||||
const MCInstrInfo &MII,
|
||||
const MCRegisterInfo &MRI,
|
||||
|
@ -64,8 +64,7 @@ static MCCodeGenInfo *createAMDGPUMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
return X;
|
||||
}
|
||||
|
||||
static MCInstPrinter *createAMDGPUMCInstPrinter(const Target &T,
|
||||
unsigned SyntaxVariant,
|
||||
static MCInstPrinter *createAMDGPUMCInstPrinter(unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI,
|
||||
const MCInstrInfo &MII,
|
||||
const MCRegisterInfo &MRI,
|
||||
|
@ -134,12 +134,11 @@ static MCTargetStreamer *createTargetAsmStreamer(MCStreamer &S,
|
||||
return new SparcTargetAsmStreamer(S, OS);
|
||||
}
|
||||
|
||||
static MCInstPrinter *createSparcMCInstPrinter(const Target &T,
|
||||
unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI,
|
||||
const MCInstrInfo &MII,
|
||||
const MCRegisterInfo &MRI,
|
||||
const MCSubtargetInfo &STI) {
|
||||
static MCInstPrinter *createSparcMCInstPrinter(unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI,
|
||||
const MCInstrInfo &MII,
|
||||
const MCRegisterInfo &MRI,
|
||||
const MCSubtargetInfo &STI) {
|
||||
return new SparcInstPrinter(MAI, MII, MRI, STI);
|
||||
}
|
||||
|
||||
|
@ -172,8 +172,7 @@ static MCCodeGenInfo *createSystemZMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
return X;
|
||||
}
|
||||
|
||||
static MCInstPrinter *createSystemZMCInstPrinter(const Target &T,
|
||||
unsigned SyntaxVariant,
|
||||
static MCInstPrinter *createSystemZMCInstPrinter(unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI,
|
||||
const MCInstrInfo &MII,
|
||||
const MCRegisterInfo &MRI,
|
||||
|
@ -207,8 +207,7 @@ static MCCodeGenInfo *createX86MCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
return X;
|
||||
}
|
||||
|
||||
static MCInstPrinter *createX86MCInstPrinter(const Target &T,
|
||||
unsigned SyntaxVariant,
|
||||
static MCInstPrinter *createX86MCInstPrinter(unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI,
|
||||
const MCInstrInfo &MII,
|
||||
const MCRegisterInfo &MRI,
|
||||
|
@ -81,8 +81,7 @@ static MCCodeGenInfo *createXCoreMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
return X;
|
||||
}
|
||||
|
||||
static MCInstPrinter *createXCoreMCInstPrinter(const Target &T,
|
||||
unsigned SyntaxVariant,
|
||||
static MCInstPrinter *createXCoreMCInstPrinter(unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI,
|
||||
const MCInstrInfo &MII,
|
||||
const MCRegisterInfo &MRI,
|
||||
|
Loading…
Reference in New Issue
Block a user