diff options
author | Sean Callanan <scallanan@apple.com> | 2010-01-19 20:27:46 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2010-01-19 20:27:46 +0000 |
commit | b9a25b7744ed12b80031426978decce3d4cebbd7 (patch) | |
tree | 3d9161735223643fb7a851de4b59143acfdc8789 /include | |
parent | 79ed1a8734f4c13e878db6beac5d791b76f22261 (diff) | |
download | external_llvm-b9a25b7744ed12b80031426978decce3d4cebbd7.zip external_llvm-b9a25b7744ed12b80031426978decce3d4cebbd7.tar.gz external_llvm-b9a25b7744ed12b80031426978decce3d4cebbd7.tar.bz2 |
Propagated the parser-side Lex function's declaration to
MCAsmParser, and changed the target-specific AsmParsers
to use it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93900 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCAsmParser.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAsmParser.h b/include/llvm/MC/MCAsmParser.h index f1ce323..73111ca 100644 --- a/include/llvm/MC/MCAsmParser.h +++ b/include/llvm/MC/MCAsmParser.h @@ -13,6 +13,7 @@ #include "llvm/System/DataTypes.h" namespace llvm { +class AsmToken; class MCAsmLexer; class MCContext; class MCExpr; @@ -50,6 +51,10 @@ public: /// clients. virtual bool Error(SMLoc L, const Twine &Msg) = 0; + /// Lex - Get the next AsmToken in the stream, possibly handling file + /// inclusion first. + virtual const AsmToken &Lex() = 0; + /// ParseExpression - Parse an arbitrary expression. /// /// @param Res - The value of the expression. The result is undefined |