1 //===-- MCAsmParser.cpp - Abstract Asm Parser Interface -------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "llvm/MC/MCParser/MCAsmParser.h"
11 #include "llvm/ADT/Twine.h"
12 #include "llvm/MC/MCParser/MCAsmLexer.h"
13 #include "llvm/MC/MCParser/MCParsedAsmOperand.h"
14 #include "llvm/Support/SourceMgr.h"
17 MCAsmParser::MCAsmParser() {
20 MCAsmParser::~MCAsmParser() {
23 const AsmToken &MCAsmParser::getTok() {
24 return getLexer().getTok();
27 bool MCAsmParser::TokError(const char *Msg) {
28 Error(getLexer().getLoc(), Msg);
32 bool MCAsmParser::ParseExpression(const MCExpr *&Res) {
34 return ParseExpression(Res, L);
37 /// getStartLoc - Get the location of the first token of this operand.
38 SMLoc MCParsedAsmOperand::getStartLoc() const { return SMLoc(); }
39 SMLoc MCParsedAsmOperand::getEndLoc() const { return SMLoc(); }