mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Remove unused argument. NFC.
llvm-svn: 232428
This commit is contained in:
parent
e59ac07033
commit
9b8b42c6d0
@ -127,9 +127,8 @@ namespace llvm {
|
||||
const MCRegisterInfo &MRI,
|
||||
MCContext &Ctx);
|
||||
typedef MCStreamer *(*MCObjectStreamerCtorTy)(
|
||||
const Target &T, StringRef TT, MCContext &Ctx, MCAsmBackend &TAB,
|
||||
raw_ostream &OS, MCCodeEmitter *Emitter, const MCSubtargetInfo &STI,
|
||||
bool RelaxAll);
|
||||
StringRef TT, MCContext &Ctx, MCAsmBackend &TAB, raw_ostream &OS,
|
||||
MCCodeEmitter *Emitter, const MCSubtargetInfo &STI, bool RelaxAll);
|
||||
typedef MCTargetStreamer *(*NullTargetStreamerCtorTy)(MCStreamer &S);
|
||||
typedef MCTargetStreamer *(*AsmTargetStreamerCtorTy)(
|
||||
MCStreamer &S, formatted_raw_ostream &OS, MCInstPrinter *InstPrint,
|
||||
@ -421,8 +420,7 @@ namespace llvm {
|
||||
bool RelaxAll) const {
|
||||
if (!MCObjectStreamerCtorFn)
|
||||
return nullptr;
|
||||
return MCObjectStreamerCtorFn(*this, TT, Ctx, TAB, OS, Emitter, STI,
|
||||
RelaxAll);
|
||||
return MCObjectStreamerCtorFn(TT, Ctx, TAB, OS, Emitter, STI, RelaxAll);
|
||||
}
|
||||
|
||||
MCStreamer *createAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
|
||||
|
@ -123,9 +123,9 @@ static MCInstPrinter *createAArch64MCInstPrinter(const Target &T,
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
static MCStreamer *createMCStreamer(const Target &T, StringRef TT,
|
||||
MCContext &Ctx, MCAsmBackend &TAB,
|
||||
raw_ostream &OS, MCCodeEmitter *Emitter,
|
||||
static MCStreamer *createMCStreamer(StringRef TT, MCContext &Ctx,
|
||||
MCAsmBackend &TAB, raw_ostream &OS,
|
||||
MCCodeEmitter *Emitter,
|
||||
const MCSubtargetInfo &STI, bool RelaxAll) {
|
||||
Triple TheTriple(TT);
|
||||
|
||||
|
@ -296,9 +296,9 @@ static MCCodeGenInfo *createARMMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
}
|
||||
|
||||
// This is duplicated code. Refactor this.
|
||||
static MCStreamer *createMCStreamer(const Target &T, StringRef TT,
|
||||
MCContext &Ctx, MCAsmBackend &MAB,
|
||||
raw_ostream &OS, MCCodeEmitter *Emitter,
|
||||
static MCStreamer *createMCStreamer(StringRef TT, MCContext &Ctx,
|
||||
MCAsmBackend &MAB, raw_ostream &OS,
|
||||
MCCodeEmitter *Emitter,
|
||||
const MCSubtargetInfo &STI, bool RelaxAll) {
|
||||
Triple TheTriple(TT);
|
||||
|
||||
|
@ -75,9 +75,9 @@ static MCAsmInfo *createHexagonMCAsmInfo(const MCRegisterInfo &MRI,
|
||||
return MAI;
|
||||
}
|
||||
|
||||
static MCStreamer *createMCStreamer(Target const &T, StringRef TT,
|
||||
MCContext &Context, MCAsmBackend &MAB,
|
||||
raw_ostream &OS, MCCodeEmitter *Emitter,
|
||||
static MCStreamer *createMCStreamer(StringRef TT, MCContext &Context,
|
||||
MCAsmBackend &MAB, raw_ostream &OS,
|
||||
MCCodeEmitter *Emitter,
|
||||
MCSubtargetInfo const &STI, bool RelaxAll) {
|
||||
MCStreamer *ES = createHexagonELFStreamer(Context, MAB, OS, Emitter, RelaxAll);
|
||||
new MCTargetStreamer(*ES);
|
||||
|
@ -106,9 +106,9 @@ static MCInstPrinter *createMipsMCInstPrinter(const Target &T,
|
||||
return new MipsInstPrinter(MAI, MII, MRI);
|
||||
}
|
||||
|
||||
static MCStreamer *createMCStreamer(const Target &T, StringRef TT,
|
||||
MCContext &Context, MCAsmBackend &MAB,
|
||||
raw_ostream &OS, MCCodeEmitter *Emitter,
|
||||
static MCStreamer *createMCStreamer(StringRef TT, MCContext &Context,
|
||||
MCAsmBackend &MAB, raw_ostream &OS,
|
||||
MCCodeEmitter *Emitter,
|
||||
const MCSubtargetInfo &STI, bool RelaxAll) {
|
||||
MCStreamer *S;
|
||||
if (!Triple(TT).isOSNaCl())
|
||||
|
@ -224,9 +224,9 @@ public:
|
||||
}
|
||||
|
||||
// This is duplicated code. Refactor this.
|
||||
static MCStreamer *createMCStreamer(const Target &T, StringRef TT,
|
||||
MCContext &Ctx, MCAsmBackend &MAB,
|
||||
raw_ostream &OS, MCCodeEmitter *Emitter,
|
||||
static MCStreamer *createMCStreamer(StringRef TT, MCContext &Ctx,
|
||||
MCAsmBackend &MAB, raw_ostream &OS,
|
||||
MCCodeEmitter *Emitter,
|
||||
const MCSubtargetInfo &STI, bool RelaxAll) {
|
||||
if (Triple(TT).isOSDarwin()) {
|
||||
MCStreamer *S = createMachOStreamer(Ctx, MAB, OS, Emitter, RelaxAll);
|
||||
|
@ -73,9 +73,9 @@ static MCInstPrinter *createAMDGPUMCInstPrinter(const Target &T,
|
||||
return new AMDGPUInstPrinter(MAI, MII, MRI);
|
||||
}
|
||||
|
||||
static MCStreamer *createMCStreamer(const Target &T, StringRef TT,
|
||||
MCContext &Ctx, MCAsmBackend &MAB,
|
||||
raw_ostream &OS, MCCodeEmitter *Emitter,
|
||||
static MCStreamer *createMCStreamer(StringRef TT, MCContext &Ctx,
|
||||
MCAsmBackend &MAB, raw_ostream &OS,
|
||||
MCCodeEmitter *Emitter,
|
||||
const MCSubtargetInfo &STI, bool RelaxAll) {
|
||||
return createELFStreamer(Ctx, MAB, OS, Emitter, false);
|
||||
}
|
||||
|
@ -122,9 +122,9 @@ static MCCodeGenInfo *createSparcV9MCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
return X;
|
||||
}
|
||||
|
||||
static MCStreamer *createMCStreamer(const Target &T, StringRef TT,
|
||||
MCContext &Context, MCAsmBackend &MAB,
|
||||
raw_ostream &OS, MCCodeEmitter *Emitter,
|
||||
static MCStreamer *createMCStreamer(StringRef TT, MCContext &Context,
|
||||
MCAsmBackend &MAB, raw_ostream &OS,
|
||||
MCCodeEmitter *Emitter,
|
||||
const MCSubtargetInfo &STI, bool RelaxAll) {
|
||||
MCStreamer *S = createELFStreamer(Context, MAB, OS, Emitter, RelaxAll);
|
||||
new SparcTargetELFStreamer(*S);
|
||||
|
@ -182,9 +182,8 @@ static MCInstPrinter *createSystemZMCInstPrinter(const Target &T,
|
||||
}
|
||||
|
||||
static MCStreamer *
|
||||
createSystemZMCObjectStreamer(const Target &T, StringRef TT, MCContext &Ctx,
|
||||
MCAsmBackend &MAB, raw_ostream &OS,
|
||||
MCCodeEmitter *Emitter,
|
||||
createSystemZMCObjectStreamer(StringRef TT, MCContext &Ctx, MCAsmBackend &MAB,
|
||||
raw_ostream &OS, MCCodeEmitter *Emitter,
|
||||
const MCSubtargetInfo &STI, bool RelaxAll) {
|
||||
return createELFStreamer(Ctx, MAB, OS, Emitter, RelaxAll);
|
||||
}
|
||||
|
@ -344,9 +344,9 @@ static MCCodeGenInfo *createX86MCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
return X;
|
||||
}
|
||||
|
||||
static MCStreamer *createMCStreamer(const Target &T, StringRef TT,
|
||||
MCContext &Ctx, MCAsmBackend &MAB,
|
||||
raw_ostream &OS, MCCodeEmitter *Emitter,
|
||||
static MCStreamer *createMCStreamer(StringRef TT, MCContext &Ctx,
|
||||
MCAsmBackend &MAB, raw_ostream &OS,
|
||||
MCCodeEmitter *Emitter,
|
||||
const MCSubtargetInfo &STI, bool RelaxAll) {
|
||||
Triple TheTriple(TT);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user