Reinitialize the ivars in the subtarget so that they can be reset with the new features.
[oota-llvm.git] / lib / Target / ARM / ARMSubtarget.h
index 87834b8b66fb33aa18e15939a2bbfd1753a752ea..f47555c0350795aec80c22285f1d9c1fae0b7282 100644 (file)
@@ -204,8 +204,10 @@ protected:
 
   /// \brief Reset the features for the X86 target.
   virtual void resetSubtargetFeatures(const MachineFunction *MF);
+private:
+  void initializeEnvironment();
   void resetSubtargetFeatures(StringRef CPU, StringRef FS);
-
+public:
   void computeIssueWidth();
 
   bool hasV4TOps()  const { return HasV4TOps;  }