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 (StringRef 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 (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)

Definition at line 30 of file AsmLexer.cpp.


Member Function Documentation

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

Definition at line 55 of file AsmLexer.h.

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

Definition at line 429 of file AsmLexer.cpp.

References llvm::StringRef::end(), 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 439 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 ( 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: