LLVM API Documentation
#include <LLLexer.h>
Public Types | |
| typedef SMLoc | LocTy |
Public Member Functions | |
| LLLexer (MemoryBuffer *StartBuf, SourceMgr &SM, SMDiagnostic &, LLVMContext &C) | |
| ~LLLexer () | |
| lltok::Kind | Lex () |
| LocTy | getLoc () const |
| lltok::Kind | getKind () const |
| const std::string & | getStrVal () const |
| Type * | getTyVal () const |
| unsigned | getUIntVal () const |
| const APSInt & | getAPSIntVal () const |
| const APFloat & | getAPFloatVal () const |
| bool | Error (LocTy L, const Twine &Msg) const |
| bool | Error (const Twine &Msg) const |
| std::string | getFilename () const |
| typedef SMLoc llvm::LLLexer::LocTy |
| LLLexer::LLLexer | ( | MemoryBuffer * | StartBuf, |
| SourceMgr & | SM, | ||
| SMDiagnostic & | Err, | ||
| LLVMContext & | C | ||
| ) | [explicit] |
Definition at line 160 of file LLLexer.cpp.
References llvm::MemoryBuffer::getBufferStart().
Definition at line 32 of file LLLexer.cpp.
References llvm::SourceMgr::DK_Error, and llvm::SourceMgr::GetMessage().
| const APFloat& llvm::LLLexer::getAPFloatVal | ( | ) | const [inline] |
| const APSInt& llvm::LLLexer::getAPSIntVal | ( | ) | const [inline] |
| std::string LLLexer::getFilename | ( | ) | const |
Definition at line 166 of file LLLexer.cpp.
References llvm::MemoryBuffer::getBufferIdentifier().
| lltok::Kind llvm::LLLexer::getKind | ( | ) | const [inline] |
| LocTy llvm::LLLexer::getLoc | ( | ) | const [inline] |
Definition at line 55 of file LLLexer.h.
References llvm::SMLoc::getFromPointer().
Referenced by Error().
| const std::string& llvm::LLLexer::getStrVal | ( | ) | const [inline] |
| lltok::Kind llvm::LLLexer::Lex | ( | ) | [inline] |
Definition at line 50 of file LLLexer.h.
Referenced by if(), and llvm::LLParser::Run().