LLVM  mainline
Public Member Functions | Protected Member Functions
llvm::AsmLexer Class Reference

AsmLexer - Lexer class for assembly files. More...

#include <AsmLexer.h>

Inheritance diagram for llvm::AsmLexer:
Inheritance graph
Collaboration diagram for llvm::AsmLexer:
Collaboration graph

List of all members.

Public Member Functions

 AsmLexer (const MCAsmInfo &MAI)
 ~AsmLexer () override
void setBuffer (StringRef Buf, const char *ptr=nullptr)
StringRef LexUntilEndOfStatement () override
StringRef LexUntilEndOfLine ()
size_t peekTokens (MutableArrayRef< AsmToken > Buf, bool ShouldSkipSpace=true) override
 Look ahead an arbitrary number of tokens.
bool isAtStartOfComment (const char *Ptr)
bool isAtStatementSeparator (const char *Ptr)
const MCAsmInfogetMAI () const

Protected Member Functions

AsmToken LexToken () override
 LexToken - Read the next token and return its code.

Detailed Description

AsmLexer - Lexer class for assembly files.

Definition at line 27 of file AsmLexer.h.

Constructor & Destructor Documentation

AsmLexer::AsmLexer ( const MCAsmInfo MAI)
AsmLexer::~AsmLexer ( ) [override]

Definition at line 30 of file AsmLexer.cpp.

Member Function Documentation

const MCAsmInfo& llvm::AsmLexer::getMAI ( ) const [inline]

Definition at line 56 of file AsmLexer.h.

Definition at line 471 of file AsmLexer.cpp.

References llvm::MCAsmInfo::getCommentString().

Referenced by LexToken(), and LexUntilEndOfStatement().

Definition at line 484 of file AsmLexer.cpp.

References llvm::MCAsmInfo::getSeparatorString().

Referenced by LexToken(), and LexUntilEndOfStatement().

AsmToken AsmLexer::LexToken ( ) [override, protected, virtual]

Definition at line 429 of file AsmLexer.cpp.

References llvm::StringRef::end(), and llvm::MCAsmLexer::TokStart.

size_t AsmLexer::peekTokens ( MutableArrayRef< AsmToken Buf,
bool  ShouldSkipSpace = true 
) [override, virtual]
void AsmLexer::setBuffer ( StringRef  Buf,
const char *  ptr = nullptr 

Definition at line 33 of file AsmLexer.cpp.

References llvm::StringRef::begin(), and llvm::MCAsmLexer::TokStart.

The documentation for this class was generated from the following files: