[X86] Read the feature bits from the subtarget that is passed to printInst
[oota-llvm.git] / lib / Target / X86 / InstPrinter / X86ATTInstPrinter.h
index 9ba30d56ea48ba19e0a0ca9ce161b907615836d7..59d52004f2dde4bece9a9835af7627e30e0232ef 100644 (file)
@@ -25,10 +25,7 @@ class X86ATTInstPrinter final : public MCInstPrinter {
 public:
   X86ATTInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII,
                     const MCRegisterInfo &MRI, const MCSubtargetInfo &STI)
-      : MCInstPrinter(MAI, MII, MRI) {
-    // Initialize the set of available features.
-    setAvailableFeatures(STI.getFeatureBits());
-  }
+      : MCInstPrinter(MAI, MII, MRI) {}
 
   void printRegName(raw_ostream &OS, unsigned RegNo) const override;
   void printInst(const MCInst *MI, raw_ostream &OS, StringRef Annot,