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=NULL)
virtual StringRef LexUntilEndOfStatement ()
StringRef LexUntilEndOfLine ()
bool isAtStartOfComment (char Char)
bool isAtStatementSeparator (const char *Ptr)
const MCAsmInfogetMAI () const

Protected Member Functions

virtual AsmToken LexToken ()
 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 24 of file AsmLexer.cpp.

AsmLexer::~AsmLexer ( )

Definition at line 30 of file AsmLexer.cpp.


Member Function Documentation

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

Definition at line 53 of file AsmLexer.h.

bool AsmLexer::isAtStartOfComment ( char  Char)

Definition at line 387 of file AsmLexer.cpp.

References llvm::MCAsmInfo::getCommentString().

Referenced by LexToken(), and LexUntilEndOfStatement().

bool AsmLexer::isAtStatementSeparator ( const char *  Ptr)
AsmToken AsmLexer::LexToken ( ) [protected, virtual]
StringRef AsmLexer::LexUntilEndOfLine ( )

Definition at line 376 of file AsmLexer.cpp.

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

StringRef AsmLexer::LexUntilEndOfStatement ( ) [virtual]
void AsmLexer::setBuffer ( const MemoryBuffer buf,
const char *  ptr = NULL 
)

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