LLVM API Documentation

llvm::LLLexer Class Reference

#include <LLLexer.h>

Collaboration diagram for llvm::LLLexer:
[legend]

List of all members.

Public Types

typedef const char * LocTy

Public Member Functions

 LLLexer (MemoryBuffer *StartBuf, ParseError &)
 ~LLLexer ()
lltok::Kind Lex ()
LocTy getLoc () const
lltok::Kind getKind () const
const std::string getStrVal () const
const Type * getTyVal () const
unsigned getUIntVal () const
const APSInt & getAPSIntVal () const
const APFloat & getAPFloatVal () const
bool Error (LocTy L, const std::string &Msg) const
bool Error (const std::string &Msg) const
std::string getFilename () const


Detailed Description

Definition at line 27 of file LLLexer.h.


Member Typedef Documentation

typedef const char* llvm::LLLexer::LocTy

Definition at line 50 of file LLLexer.h.


Constructor & Destructor Documentation

LLLexer::LLLexer ( MemoryBuffer *  StartBuf,
ParseError &  Err 
) [explicit]

Definition at line 167 of file LLLexer.cpp.

References llvm::MemoryBuffer::getBufferStart().

llvm::LLLexer::~LLLexer (  )  [inline]

Definition at line 44 of file LLLexer.h.


Member Function Documentation

lltok::Kind llvm::LLLexer::Lex (  )  [inline]

Definition at line 46 of file LLLexer.h.

Referenced by llvm::LLParser::Run().

LocTy llvm::LLLexer::getLoc (  )  const [inline]

Definition at line 51 of file LLLexer.h.

lltok::Kind llvm::LLLexer::getKind (  )  const [inline]

Definition at line 52 of file LLLexer.h.

const std::string llvm::LLLexer::getStrVal (  )  const [inline]

Definition at line 53 of file LLLexer.h.

const Type* llvm::LLLexer::getTyVal (  )  const [inline]

Definition at line 54 of file LLLexer.h.

unsigned llvm::LLLexer::getUIntVal (  )  const [inline]

Definition at line 55 of file LLLexer.h.

const APSInt& llvm::LLLexer::getAPSIntVal (  )  const [inline]

Definition at line 56 of file LLLexer.h.

const APFloat& llvm::LLLexer::getAPFloatVal (  )  const [inline]

Definition at line 57 of file LLLexer.h.

bool LLLexer::Error ( LocTy  L,
const std::string &  Msg 
) const

bool llvm::LLLexer::Error ( const std::string &  Msg  )  const [inline]

Definition at line 61 of file LLLexer.h.

References Error().

std::string LLLexer::getFilename (  )  const

Definition at line 172 of file LLLexer.cpp.

References llvm::MemoryBuffer::getBufferIdentifier().


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