Remove unused MCSubtargetInfo argument from the NVPTX MCInstPrinter ctors.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233611 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2015-03-30 22:03:16 +00:00
parent 35ff67e333
commit c94e8e8a81
3 changed files with 4 additions and 6 deletions

View File

@ -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

View File

@ -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,

View File

@ -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;
} }