OSDN Git Service

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 59d5200..62b6b73 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 7da8854..65d55d9 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;