Mercurial > hg > CbC > CbC_llvm
view lib/MC/MCParser/MCAsmLexer.cpp @ 77:54457678186b LLVM3.6
LLVM 3.6
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 08 Sep 2014 22:06:00 +0900 |
parents | 95c75e76d11b |
children | 60c9769439b8 |
line wrap: on
line source
//===-- 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()), TokStart(nullptr), SkipSpace(true) { } MCAsmLexer::~MCAsmLexer() { } SMLoc MCAsmLexer::getLoc() const { return SMLoc::getFromPointer(TokStart); } SMLoc AsmToken::getLoc() const { return SMLoc::getFromPointer(Str.data()); } SMLoc AsmToken::getEndLoc() const { return SMLoc::getFromPointer(Str.data() + Str.size()); }