2009-07-21 02:55:04 +08:00
|
|
|
//===-- MCAsmParser.cpp - Abstract Asm Parser Interface -------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2010-01-22 09:44:57 +08:00
|
|
|
#include "llvm/MC/MCParser/MCAsmParser.h"
|
2010-07-13 01:18:45 +08:00
|
|
|
#include "llvm/ADT/Twine.h"
|
2010-01-22 09:44:57 +08:00
|
|
|
#include "llvm/MC/MCParser/MCAsmLexer.h"
|
|
|
|
#include "llvm/MC/MCParser/MCParsedAsmOperand.h"
|
2010-01-16 03:28:38 +08:00
|
|
|
#include "llvm/Support/SourceMgr.h"
|
2009-07-21 02:55:04 +08:00
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
MCAsmParser::MCAsmParser() {
|
|
|
|
}
|
|
|
|
|
|
|
|
MCAsmParser::~MCAsmParser() {
|
|
|
|
}
|
2010-01-16 03:28:38 +08:00
|
|
|
|
2010-01-20 05:44:56 +08:00
|
|
|
const AsmToken &MCAsmParser::getTok() {
|
|
|
|
return getLexer().getTok();
|
|
|
|
}
|
|
|
|
|
2010-07-13 01:18:45 +08:00
|
|
|
bool MCAsmParser::TokError(const char *Msg) {
|
|
|
|
Error(getLexer().getLoc(), Msg);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2010-01-16 03:28:38 +08:00
|
|
|
bool MCAsmParser::ParseExpression(const MCExpr *&Res) {
|
|
|
|
SMLoc L;
|
2010-01-16 03:51:05 +08:00
|
|
|
return ParseExpression(Res, L);
|
2010-01-16 03:28:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/// getStartLoc - Get the location of the first token of this operand.
|
|
|
|
SMLoc MCParsedAsmOperand::getStartLoc() const { return SMLoc(); }
|
|
|
|
SMLoc MCParsedAsmOperand::getEndLoc() const { return SMLoc(); }
|
|
|
|
|
|
|
|
|