[MC] Expose ParseEscapedString to target AsmParser implementations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172777 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2013-01-18 01:25:33 +00:00
parent 9b6a44712a
commit bfdcc70d34
2 changed files with 5 additions and 4 deletions

View 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;

View 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);