Compute feature bits at time of MCSubtargetInfo initialization.
[oota-llvm.git] / lib / Target / MSP430 / MSP430Subtarget.h
index ead213bcaedbc9ce344336a0a8c0f9daa138de70..1ce5f11fe1bb0a4a6a5e90e49424eba1240db0bb 100644 (file)
@@ -22,6 +22,7 @@
 #include <string>
 
 namespace llvm {
+class StringRef;
 
 class MSP430Subtarget : public MSP430GenSubtargetInfo {
   bool ExtendedInsts;
@@ -34,7 +35,7 @@ public:
 
   /// ParseSubtargetFeatures - Parses features string setting specified
   /// subtarget options.  Definition of function is auto generated by tblgen.
-  void ParseSubtargetFeatures(const std::string &FS, const std::string &CPU);
+  void ParseSubtargetFeatures(StringRef CPU, StringRef FS);
 };
 } // End llvm namespace