Remove unused MCSubtargetInfo argument from the Sparc MCInstPrinter ctors.
authorEric Christopher <echristo@gmail.com>
Mon, 30 Mar 2015 22:09:43 +0000 (22:09 +0000)
committerEric Christopher <echristo@gmail.com>
Mon, 30 Mar 2015 22:09:43 +0000 (22:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233612 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/InstPrinter/SparcInstPrinter.h
lib/Target/Sparc/MCTargetDesc/SparcMCTargetDesc.cpp

index 62d42cbab2049cc2ded1e7a27923bc952a942cc8..0b01b88e52508ed2601ee48850b5a4e642a50c07 100644 (file)
@@ -23,11 +23,9 @@ class MCOperand;
 
 class SparcInstPrinter : public MCInstPrinter {
 public:
- SparcInstPrinter(const MCAsmInfo &MAI,
-                  const MCInstrInfo &MII,
-                  const MCRegisterInfo &MRI,
-                  const MCSubtargetInfo &sti)
-   : MCInstPrinter(MAI, MII, MRI) {}
+  SparcInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII,
+                   const MCRegisterInfo &MRI)
+      : MCInstPrinter(MAI, MII, MRI) {}
 
   void printRegName(raw_ostream &OS, unsigned RegNo) const override;
   void printInst(const MCInst *MI, raw_ostream &O, StringRef Annot,
index 13d8aeb835c53bb2487c5433d9d964828e8df782..37cad4908259ecfa791f7484a1fd62e8ca1d360f 100644 (file)
@@ -139,7 +139,7 @@ static MCInstPrinter *createSparcMCInstPrinter(unsigned SyntaxVariant,
                                                const MCInstrInfo &MII,
                                                const MCRegisterInfo &MRI,
                                                const MCSubtargetInfo &STI) {
-  return new SparcInstPrinter(MAI, MII, MRI, STI);
+  return new SparcInstPrinter(MAI, MII, MRI);
 }
 
 extern "C" void LLVMInitializeSparcTargetMC() {