diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-22 01:44:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-22 01:44:57 +0000 |
commit | c6ef277a0b8f43af22d86aea9d5053749cacfbbb (patch) | |
tree | 58fe0b09a1e44fa60f3d4bb596abb1b4a67d903c /lib/MC/MCParser/MCAsmLexer.cpp | |
parent | 03949c9db3e8f02d6ec7cd53782507e3a4e9e4fc (diff) |
create a new MCParser library and move some stuff into it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94129 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCParser/MCAsmLexer.cpp')
-rw-r--r-- | lib/MC/MCParser/MCAsmLexer.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/MC/MCParser/MCAsmLexer.cpp b/lib/MC/MCParser/MCAsmLexer.cpp new file mode 100644 index 0000000000..e5b2955096 --- /dev/null +++ b/lib/MC/MCParser/MCAsmLexer.cpp @@ -0,0 +1,23 @@ +//===-- 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()); +} |