Daniel Dunbar | dbd692a | 2009-07-20 20:01:54 +0000 | [diff] [blame] | 1 | //===-- 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 Dunbar | 7b7f514 | 2009-08-14 02:18:40 +0000 | [diff] [blame] | 11 | #include "llvm/Support/SourceMgr.h" |
Daniel Dunbar | dbd692a | 2009-07-20 20:01:54 +0000 | [diff] [blame] | 12 | |
| 13 | using namespace llvm; |
| 14 | |
Daniel Dunbar | cbbe248 | 2009-07-28 17:58:44 +0000 | [diff] [blame] | 15 | MCAsmLexer::MCAsmLexer() : CurTok(AsmToken::Error, StringRef()) { |
Daniel Dunbar | dbd692a | 2009-07-20 20:01:54 +0000 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | MCAsmLexer::~MCAsmLexer() { |
| 19 | } |
Daniel Dunbar | 7b7f514 | 2009-08-14 02:18:40 +0000 | [diff] [blame] | 20 | |
| 21 | SMLoc AsmToken::getLoc() const { |
| 22 | return SMLoc::getFromPointer(Str.data()); |
| 23 | } |