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

lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp
lib/Target/AArch64/InstPrinter/AArch64InstPrinter.h
lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.cpp

index 6694d5f51d8cda1ca0359f7ca7f20480567fe821..6ee1a3292abd85ff11eb6e6160997b90af9a4296 100644 (file)
@@ -34,15 +34,13 @@ using namespace llvm;
 
 AArch64InstPrinter::AArch64InstPrinter(const MCAsmInfo &MAI,
                                        const MCInstrInfo &MII,
-                                       const MCRegisterInfo &MRI,
-                                       const MCSubtargetInfo &STI)
+                                       const MCRegisterInfo &MRI)
     : MCInstPrinter(MAI, MII, MRI) {}
 
 AArch64AppleInstPrinter::AArch64AppleInstPrinter(const MCAsmInfo &MAI,
                                                  const MCInstrInfo &MII,
-                                                 const MCRegisterInfo &MRI,
-                                                 const MCSubtargetInfo &STI)
-    : AArch64InstPrinter(MAI, MII, MRI, STI) {}
+                                                 const MCRegisterInfo &MRI)
+    : AArch64InstPrinter(MAI, MII, MRI) {}
 
 void AArch64InstPrinter::printRegName(raw_ostream &OS, unsigned RegNo) const {
   // This is for .cfi directives.
index e9c1051d22b9dc8cbcc8d622ebca8902b7b0521d..c2077a0fe557288c1f2bdd1cbeea6f29cfec2b57 100644 (file)
@@ -26,7 +26,7 @@ class MCOperand;
 class AArch64InstPrinter : public MCInstPrinter {
 public:
   AArch64InstPrinter(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;
@@ -158,8 +158,7 @@ protected:
 class AArch64AppleInstPrinter : public AArch64InstPrinter {
 public:
   AArch64AppleInstPrinter(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 f362f94e00ad8b47e3ecca7b3934fe16a719ea8d..7e73c3984605f57319d820bcc5e395db48d63025 100644 (file)
@@ -115,9 +115,9 @@ static MCInstPrinter *createAArch64MCInstPrinter(unsigned SyntaxVariant,
                                                  const MCRegisterInfo &MRI,
                                                  const MCSubtargetInfo &STI) {
   if (SyntaxVariant == 0)
-    return new AArch64InstPrinter(MAI, MII, MRI, STI);
+    return new AArch64InstPrinter(MAI, MII, MRI);
   if (SyntaxVariant == 1)
-    return new AArch64AppleInstPrinter(MAI, MII, MRI, STI);
+    return new AArch64AppleInstPrinter(MAI, MII, MRI);
 
   return nullptr;
 }