diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-07-12 17:18:45 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-07-12 17:18:45 +0000 |
| commit | d8ef4b5e7cebb3834dcb1f644c129eadd641a6e8 (patch) | |
| tree | 7704e5af41d00ca68e02aaff45d89ce1d71e9155 /include/llvm/MC | |
| parent | 83bcaf7e162dd63c57e8620961ef65be5cccedb2 (diff) | |
| download | external_llvm-d8ef4b5e7cebb3834dcb1f644c129eadd641a6e8.zip external_llvm-d8ef4b5e7cebb3834dcb1f644c129eadd641a6e8.tar.gz external_llvm-d8ef4b5e7cebb3834dcb1f644c129eadd641a6e8.tar.bz2 | |
MC: Move AsmParser::TokError to MCAsmParser().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108155 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC')
| -rw-r--r-- | include/llvm/MC/MCParser/AsmParser.h | 2 | ||||
| -rw-r--r-- | include/llvm/MC/MCParser/MCAsmParser.h | 13 |
2 files changed, 8 insertions, 7 deletions
diff --git a/include/llvm/MC/MCParser/AsmParser.h b/include/llvm/MC/MCParser/AsmParser.h index afd001b..5b48757 100644 --- a/include/llvm/MC/MCParser/AsmParser.h +++ b/include/llvm/MC/MCParser/AsmParser.h @@ -96,8 +96,6 @@ private: MCSymbol *CreateSymbol(StringRef Name); bool ParseStatement(); - - bool TokError(const char *Msg); void PrintMessage(SMLoc Loc, const std::string &Msg, const char *Type) const; diff --git a/include/llvm/MC/MCParser/MCAsmParser.h b/include/llvm/MC/MCParser/MCAsmParser.h index 7f7f1b6..176c3a3 100644 --- a/include/llvm/MC/MCParser/MCAsmParser.h +++ b/include/llvm/MC/MCParser/MCAsmParser.h @@ -28,7 +28,7 @@ class MCAsmParser { void operator=(const MCAsmParser &); // DO NOT IMPLEMENT protected: // Can only create subclasses. MCAsmParser(); - + public: virtual ~MCAsmParser(); @@ -43,7 +43,7 @@ public: /// Msg. virtual void Warning(SMLoc L, const Twine &Msg) = 0; - /// Warning - Emit an error at the location \arg L, with the message \arg + /// Error - Emit an error at the location \arg L, with the message \arg /// Msg. /// /// \return The return value is always true, as an idiomatic convenience to @@ -53,10 +53,13 @@ public: /// Lex - Get the next AsmToken in the stream, possibly handling file /// inclusion first. virtual const AsmToken &Lex() = 0; - + /// getTok - Get the current AsmToken from the stream. const AsmToken &getTok(); - + + /// \brief Report an error at the current lexer location. + bool TokError(const char *Msg); + /// ParseExpression - Parse an arbitrary expression. /// /// @param Res - The value of the expression. The result is undefined @@ -64,7 +67,7 @@ public: /// @result - False on success. virtual bool ParseExpression(const MCExpr *&Res, SMLoc &EndLoc) = 0; bool ParseExpression(const MCExpr *&Res); - + /// ParseParenExpression - Parse an arbitrary expression, assuming that an /// initial '(' has already been consumed. /// |
