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

lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
lib/Target/ARM/InstPrinter/ARMInstPrinter.h
lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp

index edf8a07b8eb086b3b4fe05e321593d75814d0506..c2e1b2a3045c5e42eaf3150ca4509a3c1742a0e8 100644 (file)
@@ -59,8 +59,7 @@ static void printRegImmShift(raw_ostream &O, ARM_AM::ShiftOpc ShOpc,
 }
 
 ARMInstPrinter::ARMInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII,
-                               const MCRegisterInfo &MRI,
-                               const MCSubtargetInfo &STI)
+                               const MCRegisterInfo &MRI)
     : MCInstPrinter(MAI, MII, MRI) {}
 
 void ARMInstPrinter::printRegName(raw_ostream &OS, unsigned RegNo) const {
index 11214e49fc7aed4468b4ddf0d1f343ee23626590..3927c9f8bfd3ea192a78dcaffdb8c0b5b11f5cef 100644 (file)
@@ -24,7 +24,7 @@ class MCOperand;
 class ARMInstPrinter : public MCInstPrinter {
 public:
   ARMInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII,
-                 const MCRegisterInfo &MRI, const MCSubtargetInfo &STI);
+                 const MCRegisterInfo &MRI);
 
   void printInst(const MCInst *MI, raw_ostream &O, StringRef Annot,
                  const MCSubtargetInfo &STI) override;
index 1935bc59e881427b93738a092357abffd11b7797..a9d4d567fe753496b4c133d6ad743174a93da71c 100644 (file)
@@ -329,7 +329,7 @@ static MCInstPrinter *createARMMCInstPrinter(unsigned SyntaxVariant,
                                              const MCRegisterInfo &MRI,
                                              const MCSubtargetInfo &STI) {
   if (SyntaxVariant == 0)
-    return new ARMInstPrinter(MAI, MII, MRI, STI);
+    return new ARMInstPrinter(MAI, MII, MRI);
   return nullptr;
 }