You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.247
Former-commit-id: 2d6af2e4ed0eda5cbdc2946446ef7718456ad190
This commit is contained in:
parent
279aa8f685
commit
ce8e504569
36
external/llvm/lib/MC/MCParser/MCAsmLexer.cpp
vendored
36
external/llvm/lib/MC/MCParser/MCAsmLexer.cpp
vendored
@ -1,36 +0,0 @@
|
||||
//===- 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