You've already forked linux-packaging-mono
Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
parent
8016999e4d
commit
64ac736ec5
36
external/llvm/lib/MC/MCParser/MCAsmLexer.cpp
vendored
Normal file
36
external/llvm/lib/MC/MCParser/MCAsmLexer.cpp
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
//===- 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/ADT/StringRef.h"
|
||||
#include "llvm/Support/SMLoc.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
MCAsmLexer::MCAsmLexer() : AltMacroMode(false) {
|
||||
CurTok.emplace_back(AsmToken::Space, StringRef());
|
||||
}
|
||||
|
||||
MCAsmLexer::~MCAsmLexer() = default;
|
||||
|
||||
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());
|
||||
}
|
||||
|
||||
SMRange AsmToken::getLocRange() const {
|
||||
return SMRange(getLoc(), getEndLoc());
|
||||
}
|
Reference in New Issue
Block a user