create a new MCParser library and move some stuff into it.
[oota-llvm.git] / lib / MC / MCParser / MCAsmParser.cpp
1 //===-- MCAsmParser.cpp - Abstract Asm Parser Interface -------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #include "llvm/MC/MCParser/MCAsmParser.h"
11 #include "llvm/MC/MCParser/MCAsmLexer.h"
12 #include "llvm/MC/MCParser/MCParsedAsmOperand.h"
13 #include "llvm/Support/SourceMgr.h"
14 using namespace llvm;
15
16 MCAsmParser::MCAsmParser() {
17 }
18
19 MCAsmParser::~MCAsmParser() {
20 }
21
22 const AsmToken &MCAsmParser::getTok() {
23   return getLexer().getTok();
24 }
25
26 bool MCAsmParser::ParseExpression(const MCExpr *&Res) {
27   SMLoc L;
28   return ParseExpression(Res, L);
29 }
30
31 /// getStartLoc - Get the location of the first token of this operand.
32 SMLoc MCParsedAsmOperand::getStartLoc() const { return SMLoc(); }
33 SMLoc MCParsedAsmOperand::getEndLoc() const { return SMLoc(); }
34
35