aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MCAsmLexer.cpp
blob: 1e34ed6f7900b711680bdc4b2305612faf5e863b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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/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());
}