mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-27 14:45:50 +00:00
18b8323de7
the two token accessor functions are declared consistently. Modified the clients of MCAsmParser to reflect this change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93916 91177308-0d34-0410-b5e6-96231b3b80d8
36 lines
951 B
C++
36 lines
951 B
C++
//===-- 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.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "llvm/MC/MCAsmParser.h"
|
|
#include "llvm/MC/MCAsmLexer.h"
|
|
#include "llvm/MC/MCParsedAsmOperand.h"
|
|
#include "llvm/Support/SourceMgr.h"
|
|
using namespace llvm;
|
|
|
|
MCAsmParser::MCAsmParser() {
|
|
}
|
|
|
|
MCAsmParser::~MCAsmParser() {
|
|
}
|
|
|
|
const AsmToken &MCAsmParser::getTok() {
|
|
return getLexer().getTok();
|
|
}
|
|
|
|
bool MCAsmParser::ParseExpression(const MCExpr *&Res) {
|
|
SMLoc L;
|
|
return ParseExpression(Res, L);
|
|
}
|
|
|
|
/// getStartLoc - Get the location of the first token of this operand.
|
|
SMLoc MCParsedAsmOperand::getStartLoc() const { return SMLoc(); }
|
|
SMLoc MCParsedAsmOperand::getEndLoc() const { return SMLoc(); }
|
|
|
|
|