Remove unused MCSubtargetInfo argument from the NVPTX MCInstPrinter ctors.
llvm-svn: 233611
This commit is contained in:
parent
5a227fffe5
commit
48e697f7fe
|
@ -28,11 +28,9 @@ using namespace llvm;
|
||||||
|
|
||||||
#include "NVPTXGenAsmWriter.inc"
|
#include "NVPTXGenAsmWriter.inc"
|
||||||
|
|
||||||
|
|
||||||
NVPTXInstPrinter::NVPTXInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII,
|
NVPTXInstPrinter::NVPTXInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII,
|
||||||
const MCRegisterInfo &MRI,
|
const MCRegisterInfo &MRI)
|
||||||
const MCSubtargetInfo &STI)
|
: MCInstPrinter(MAI, MII, MRI) {}
|
||||||
: MCInstPrinter(MAI, MII, MRI) {}
|
|
||||||
|
|
||||||
void NVPTXInstPrinter::printRegName(raw_ostream &OS, unsigned RegNo) const {
|
void NVPTXInstPrinter::printRegName(raw_ostream &OS, unsigned RegNo) const {
|
||||||
// Decode the virtual register
|
// Decode the virtual register
|
||||||
|
|
|
@ -25,7 +25,7 @@ class MCSubtargetInfo;
|
||||||
class NVPTXInstPrinter : public MCInstPrinter {
|
class NVPTXInstPrinter : public MCInstPrinter {
|
||||||
public:
|
public:
|
||||||
NVPTXInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII,
|
NVPTXInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII,
|
||||||
const MCRegisterInfo &MRI, const MCSubtargetInfo &STI);
|
const MCRegisterInfo &MRI);
|
||||||
|
|
||||||
void printRegName(raw_ostream &OS, unsigned RegNo) const override;
|
void printRegName(raw_ostream &OS, unsigned RegNo) const override;
|
||||||
void printInst(const MCInst *MI, raw_ostream &OS, StringRef Annot,
|
void printInst(const MCInst *MI, raw_ostream &OS, StringRef Annot,
|
||||||
|
|
|
@ -64,7 +64,7 @@ static MCInstPrinter *createNVPTXMCInstPrinter(unsigned SyntaxVariant,
|
||||||
const MCRegisterInfo &MRI,
|
const MCRegisterInfo &MRI,
|
||||||
const MCSubtargetInfo &STI) {
|
const MCSubtargetInfo &STI) {
|
||||||
if (SyntaxVariant == 0)
|
if (SyntaxVariant == 0)
|
||||||
return new NVPTXInstPrinter(MAI, MII, MRI, STI);
|
return new NVPTXInstPrinter(MAI, MII, MRI);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue