LLVM API Documentation
00001 //===-- MCAsmLexer.cpp - Abstract Asm Lexer Interface ---------------------===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 00010 #include "llvm/MC/MCAsmLexer.h" 00011 #include "llvm/Support/SourceMgr.h" 00012 00013 using namespace llvm; 00014 00015 MCAsmLexer::MCAsmLexer() : CurTok(AsmToken::Error, StringRef()) { 00016 } 00017 00018 MCAsmLexer::~MCAsmLexer() { 00019 } 00020 00021 SMLoc AsmToken::getLoc() const { 00022 return SMLoc::getFromPointer(Str.data()); 00023 }