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 | dc4c7da5d4c73bef2ce73ce0f96019457337c402 (patch) | |
tree | 7704e5af41d00ca68e02aaff45d89ce1d71e9155 /lib/MC/MCParser/MCAsmParser.cpp | |
parent | ca90dc6d295f7f6a5ef4240f26bcebe54276def5 (diff) | |
download | external_llvm-dc4c7da5d4c73bef2ce73ce0f96019457337c402.zip external_llvm-dc4c7da5d4c73bef2ce73ce0f96019457337c402.tar.gz external_llvm-dc4c7da5d4c73bef2ce73ce0f96019457337c402.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 'lib/MC/MCParser/MCAsmParser.cpp')
-rw-r--r-- | lib/MC/MCParser/MCAsmParser.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/MC/MCParser/MCAsmParser.cpp b/lib/MC/MCParser/MCAsmParser.cpp index b8c2054..bee3064 100644 --- a/lib/MC/MCParser/MCAsmParser.cpp +++ b/lib/MC/MCParser/MCAsmParser.cpp @@ -8,6 +8,7 @@ //===----------------------------------------------------------------------===// #include "llvm/MC/MCParser/MCAsmParser.h" +#include "llvm/ADT/Twine.h" #include "llvm/MC/MCParser/MCAsmLexer.h" #include "llvm/MC/MCParser/MCParsedAsmOperand.h" #include "llvm/Support/SourceMgr.h" @@ -23,6 +24,11 @@ const AsmToken &MCAsmParser::getTok() { return getLexer().getTok(); } +bool MCAsmParser::TokError(const char *Msg) { + Error(getLexer().getLoc(), Msg); + return true; +} + bool MCAsmParser::ParseExpression(const MCExpr *&Res) { SMLoc L; return ParseExpression(Res, L); |