diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-07-18 20:15:59 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-07-18 20:15:59 +0000 |
| commit | 35360b51e2008bfb337caa617474e3c3281a3c37 (patch) | |
| tree | 3c1648e78244d90fb2f723af1dc62d882f667780 /include/llvm/MC | |
| parent | 333a83ee99daee880a62ba83bf72093162b3d7e9 (diff) | |
| download | external_llvm-35360b51e2008bfb337caa617474e3c3281a3c37.zip external_llvm-35360b51e2008bfb337caa617474e3c3281a3c37.tar.gz external_llvm-35360b51e2008bfb337caa617474e3c3281a3c37.tar.bz2 | |
MC/AsmParser: Fix .abort and .secure_log_unique to accept arbitrary token
sequences, not just strings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108655 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC')
| -rw-r--r-- | include/llvm/MC/MCParser/MCAsmParser.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/MC/MCParser/MCAsmParser.h b/include/llvm/MC/MCParser/MCAsmParser.h index 414b9cc..c3b0c91 100644 --- a/include/llvm/MC/MCParser/MCAsmParser.h +++ b/include/llvm/MC/MCParser/MCAsmParser.h @@ -89,6 +89,11 @@ public: /// and set \arg Res to the identifier contents. virtual bool ParseIdentifier(StringRef &Res) = 0; + /// \brief Parse up to the end of statement and return the contents from the + /// current token until the end of the statement; the current token on exit + /// will be either the EndOfStatement or EOF. + virtual StringRef ParseStringToEndOfStatement() = 0; + /// ParseExpression - Parse an arbitrary expression. /// /// @param Res - The value of the expression. The result is undefined |
