LLVM API Documentation

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
[legend]
Collaboration diagram for llvm::AsmLexer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AsmLexer (const MCAsmInfo &MAI)
 ~AsmLexer ()
void setBuffer (const MemoryBuffer *buf, const char *ptr=nullptr)
StringRef LexUntilEndOfStatement () override
StringRef LexUntilEndOfLine ()
const AsmToken peekTok (bool ShouldSkipSpace=true) override
 peekTok - Look ahead at the next token to be lexed.
bool isAtStartOfComment (char Char)
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)

Definition at line 31 of file AsmLexer.cpp.


Member Function Documentation

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

Definition at line 55 of file AsmLexer.h.

Definition at line 464 of file AsmLexer.cpp.

References llvm::MCAsmInfo::getCommentString().

Referenced by LexToken(), and LexUntilEndOfStatement().

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

Definition at line 431 of file AsmLexer.cpp.

References llvm::MemoryBuffer::getBufferEnd(), and llvm::MCAsmLexer::TokStart.

const AsmToken AsmLexer::peekTok ( bool  ShouldSkipSpace = true) [override, virtual]

peekTok - Look ahead at the next token to be lexed.

Implements llvm::MCAsmLexer.

Definition at line 442 of file AsmLexer.cpp.

References llvm::MCAsmLexer::getErr(), llvm::MCAsmLexer::getErrLoc(), LexToken(), llvm::MCAsmLexer::SetError(), llvm::MCAsmLexer::SkipSpace, and llvm::MCAsmLexer::TokStart.

void AsmLexer::setBuffer ( const MemoryBuffer buf,
const char *  ptr = nullptr 
)

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