blob: 1e34ed6f7900b711680bdc4b2305612faf5e863b [file] [log] [blame]
Daniel Dunbardbd692a2009-07-20 20:01:54 +00001//===-- MCAsmLexer.cpp - Abstract Asm Lexer 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/MCAsmLexer.h"
Daniel Dunbar7b7f5142009-08-14 02:18:40 +000011#include "llvm/Support/SourceMgr.h"
Daniel Dunbardbd692a2009-07-20 20:01:54 +000012
13using namespace llvm;
14
Daniel Dunbarcbbe2482009-07-28 17:58:44 +000015MCAsmLexer::MCAsmLexer() : CurTok(AsmToken::Error, StringRef()) {
Daniel Dunbardbd692a2009-07-20 20:01:54 +000016}
17
18MCAsmLexer::~MCAsmLexer() {
19}
Daniel Dunbar7b7f5142009-08-14 02:18:40 +000020
21SMLoc AsmToken::getLoc() const {
22 return SMLoc::getFromPointer(Str.data());
23}