//===- MCAsmLexer.cpp - Abstract Asm Lexer Interface ----------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "llvm/MC/MCParser/MCAsmLexer.h" #include "llvm/ADT/StringRef.h" #include "llvm/Support/SMLoc.h" #include "llvm/Support/raw_ostream.h" usingnamespacellvm; MCAsmLexer::MCAsmLexer() { … } MCAsmLexer::~MCAsmLexer() = default; SMLoc MCAsmLexer::getLoc() const { … } SMLoc AsmToken::getLoc() const { … } SMLoc AsmToken::getEndLoc() const { … } SMRange AsmToken::getLocRange() const { … } void AsmToken::dump(raw_ostream &OS) const { … }