forked from OSchip/llvm-project
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"
|
||||
|
||||
|
||||
NVPTXInstPrinter::NVPTXInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII,
|
||||
const MCRegisterInfo &MRI,
|
||||
const MCSubtargetInfo &STI)
|
||||
: MCInstPrinter(MAI, MII, MRI) {}
|
||||
const MCRegisterInfo &MRI)
|
||||
: MCInstPrinter(MAI, MII, MRI) {}
|
||||
|
||||
void NVPTXInstPrinter::printRegName(raw_ostream &OS, unsigned RegNo) const {
|
||||
// Decode the virtual register
|
||||
|
|
|
@ -25,7 +25,7 @@ class MCSubtargetInfo;
|
|||
class NVPTXInstPrinter : public MCInstPrinter {
|
||||
public:
|
||||
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 printInst(const MCInst *MI, raw_ostream &OS, StringRef Annot,
|
||||
|
|
|
@ -64,7 +64,7 @@ static MCInstPrinter *createNVPTXMCInstPrinter(unsigned SyntaxVariant,
|
|||
const MCRegisterInfo &MRI,
|
||||
const MCSubtargetInfo &STI) {
|
||||
if (SyntaxVariant == 0)
|
||||
return new NVPTXInstPrinter(MAI, MII, MRI, STI);
|
||||
return new NVPTXInstPrinter(MAI, MII, MRI);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue