mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
[MC] Expose ParseEscapedString to target AsmParser implementations.
llvm-svn: 172777
This commit is contained in:
parent
0307f1c8e9
commit
870ae74b9b
@ -135,6 +135,10 @@ public:
|
|||||||
/// will be either the EndOfStatement or EOF.
|
/// will be either the EndOfStatement or EOF.
|
||||||
virtual StringRef ParseStringToEndOfStatement() = 0;
|
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
|
/// EatToEndOfStatement - Skip to the end of the current statement, for error
|
||||||
/// recovery.
|
/// recovery.
|
||||||
virtual void EatToEndOfStatement() = 0;
|
virtual void EatToEndOfStatement() = 0;
|
||||||
|
@ -427,10 +427,7 @@ private:
|
|||||||
bool ParseDirectiveElseIf(SMLoc DirectiveLoc); // ".elseif"
|
bool ParseDirectiveElseIf(SMLoc DirectiveLoc); // ".elseif"
|
||||||
bool ParseDirectiveElse(SMLoc DirectiveLoc); // ".else"
|
bool ParseDirectiveElse(SMLoc DirectiveLoc); // ".else"
|
||||||
bool ParseDirectiveEndIf(SMLoc DirectiveLoc); // .endif
|
bool ParseDirectiveEndIf(SMLoc DirectiveLoc); // .endif
|
||||||
|
virtual bool ParseEscapedString(std::string &Data);
|
||||||
/// ParseEscapedString - Parse the current token as a string which may include
|
|
||||||
/// escaped characters and return the string contents.
|
|
||||||
bool ParseEscapedString(std::string &Data);
|
|
||||||
|
|
||||||
const MCExpr *ApplyModifierToExpr(const MCExpr *E,
|
const MCExpr *ApplyModifierToExpr(const MCExpr *E,
|
||||||
MCSymbolRefExpr::VariantKind Variant);
|
MCSymbolRefExpr::VariantKind Variant);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user