llvm-6502/lib/MC/MCParser/MCAsmLexer.cpp
2010-01-22 01:44:57 +00:00

24 lines
622 B
C++

//===-- MCAsmLexer.cpp - Abstract Asm Lexer 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/MCParser/MCAsmLexer.h"
#include "llvm/Support/SourceMgr.h"
using namespace llvm;
MCAsmLexer::MCAsmLexer() : CurTok(AsmToken::Error, StringRef()) {
}
MCAsmLexer::~MCAsmLexer() {
}
SMLoc AsmToken::getLoc() const {
return SMLoc::getFromPointer(Str.data());
}