[MC] Expose ParseEscapedString to target AsmParser implementations.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 18 Jan 2013 01:25:33 +0000 (01:25 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 18 Jan 2013 01:25:33 +0000 (01:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172777 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCParser/MCAsmParser.h
lib/MC/MCParser/AsmParser.cpp

index 1f829914009eb4314a1fd5afc56939f24e0857ad..bd3883f1759bda0740aa82fdcf3a83b45c7559c2 100644 (file)
@@ -135,6 +135,10 @@ public:
   /// will be either the EndOfStatement or EOF.
   virtual StringRef ParseStringToEndOfStatement() = 0;
 
+  /// ParseEscapedString - Parse the current token as a string which may include
+  /// escaped characters and return the string contents.
+  virtual bool ParseEscapedString(std::string &Data) = 0;
+
   /// EatToEndOfStatement - Skip to the end of the current statement, for error
   /// recovery.
   virtual void EatToEndOfStatement() = 0;
index 0aca2fa46e72b0b93ff139fee1d0e2b1ec65c843..7d4b4d887ddf17c718ddde0112c99290f8c3958e 100644 (file)
@@ -427,10 +427,7 @@ private:
   bool ParseDirectiveElseIf(SMLoc DirectiveLoc); // ".elseif"
   bool ParseDirectiveElse(SMLoc DirectiveLoc); // ".else"
   bool ParseDirectiveEndIf(SMLoc DirectiveLoc); // .endif
-
-  /// ParseEscapedString - Parse the current token as a string which may include
-  /// escaped characters and return the string contents.
-  bool ParseEscapedString(std::string &Data);
+  virtual bool ParseEscapedString(std::string &Data);
 
   const MCExpr *ApplyModifierToExpr(const MCExpr *E,
                                     MCSymbolRefExpr::VariantKind Variant);