LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | List of all members
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]

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
 
- Public Member Functions inherited from llvm::MCAsmLexer
virtual ~MCAsmLexer ()
 
const AsmTokenLex ()
 
SMLoc getLoc () const
 getLoc - Get the current source location. More...
 
const AsmTokengetTok ()
 getTok - Get the current (last) lexed token. More...
 
const SMLocgetErrLoc ()
 getErrLoc - Get the current error location More...
 
const std::string & getErr ()
 getErr - Get the current error string More...
 
AsmToken::TokenKind getKind () const
 getKind - Get the kind of current token. More...
 
bool is (AsmToken::TokenKind K) const
 is - Check if the current token has kind K. More...
 
bool isNot (AsmToken::TokenKind K) const
 isNot - Check if the current token has kind K. More...
 
void setSkipSpace (bool val)
 setSkipSpace - Set whether spaces should be ignored by the lexer More...
 

Protected Member Functions

virtual AsmToken LexToken ()
 LexToken - Read the next token and return its code. More...
 
- Protected Member Functions inherited from llvm::MCAsmLexer
 MCAsmLexer ()
 
void SetError (const SMLoc &errLoc, const std::string &err)
 

Additional Inherited Members

- Protected Attributes inherited from llvm::MCAsmLexer
const char * TokStart
 
bool SkipSpace
 

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 439 of file AsmLexer.cpp.

References llvm::MCAsmInfo::getCommentString().

Referenced by LexToken(), and LexUntilEndOfStatement().

bool AsmLexer::isAtStatementSeparator ( const char *  Ptr)
AsmToken AsmLexer::LexToken ( )
protectedvirtual
StringRef AsmLexer::LexUntilEndOfLine ( )

Definition at line 428 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: