2009-07-20 22:01:54 +02:00
|
|
|
//===-- 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/MCAsmLexer.h"
|
2009-08-14 04:18:40 +02:00
|
|
|
#include "llvm/Support/SourceMgr.h"
|
2009-07-20 22:01:54 +02:00
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
2009-07-28 19:58:44 +02:00
|
|
|
MCAsmLexer::MCAsmLexer() : CurTok(AsmToken::Error, StringRef()) {
|
2009-07-20 22:01:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
MCAsmLexer::~MCAsmLexer() {
|
|
|
|
}
|
2009-08-14 04:18:40 +02:00
|
|
|
|
|
|
|
SMLoc AsmToken::getLoc() const {
|
|
|
|
return SMLoc::getFromPointer(Str.data());
|
|
|
|
}
|