mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
MC: Move AsmParser::TokError to MCAsmParser().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108155 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -56,11 +56,6 @@ bool AsmParser::Error(SMLoc L, const Twine &Msg) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool AsmParser::TokError(const char *Msg) {
|
||||
PrintMessage(Lexer.getLoc(), Msg, "error");
|
||||
return true;
|
||||
}
|
||||
|
||||
void AsmParser::PrintMessage(SMLoc Loc, const std::string &Msg,
|
||||
const char *Type) const {
|
||||
SrcMgr.PrintMessage(Loc, Msg, Type);
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user