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

lib/Target/X86/InstPrinter/X86ATTInstPrinter.h
lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp

index 59d52004f2dde4bece9a9835af7627e30e0232ef..62b6b73e7864767c63df65e868ad5e90608b4955 100644 (file)
@@ -24,7 +24,7 @@ class MCOperand;
 class X86ATTInstPrinter final : public MCInstPrinter {
 public:
   X86ATTInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII,
-                    const MCRegisterInfo &MRI, const MCSubtargetInfo &STI)
+                    const MCRegisterInfo &MRI)
       : MCInstPrinter(MAI, MII, MRI) {}
 
   void printRegName(raw_ostream &OS, unsigned RegNo) const override;
index 7da8854af8cdd3e345a93a38efe89ea5865e558a..65d55d9ec99ec12388f67cff9bf440d803139da4 100644 (file)
@@ -213,7 +213,7 @@ static MCInstPrinter *createX86MCInstPrinter(unsigned SyntaxVariant,
                                              const MCRegisterInfo &MRI,
                                              const MCSubtargetInfo &STI) {
   if (SyntaxVariant == 0)
-    return new X86ATTInstPrinter(MAI, MII, MRI, STI);
+    return new X86ATTInstPrinter(MAI, MII, MRI);
   if (SyntaxVariant == 1)
     return new X86IntelInstPrinter(MAI, MII, MRI);
   return nullptr;