MC/AsmParser: Fix TokError() to accept a Twine.
[oota-llvm.git] / include / llvm / MC / MCParser / MCAsmParserExtension.h
index ad9ccf79d12a10464d6a8f897c987f3c51ef3ad8..5b65f4e6a7aba1d65cb43debf45e50bc8e57ce20 100644 (file)
@@ -14,6 +14,7 @@
 #include "llvm/Support/SMLoc.h"
 
 namespace llvm {
+class Twine;
 
 /// \brief Generic interface for extending the MCAsmParser,
 /// which is implemented by target and object file assembly parser
@@ -49,15 +50,14 @@ public:
   bool Error(SMLoc L, const Twine &Msg) {
     return getParser().Error(L, Msg);
   }
+  bool TokError(const Twine &Msg) {
+    return getParser().TokError(Msg);
+  }
 
   const AsmToken &Lex() { return getParser().Lex(); }
 
   const AsmToken &getTok() { return getParser().getTok(); }
 
-  bool TokError(const char *Msg) {
-    return getParser().TokError(Msg);
-  }
-
   /// @}
 };