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 |
| 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 |
Definition at line 29 of file LLLexer.h.
| typedef SMLoc llvm::LLLexer::LocTy |
| LLLexer::LLLexer | ( | MemoryBuffer * | StartBuf, | |
| SourceMgr & | SM, | |||
| SMDiagnostic & | Err, | |||
| LLVMContext & | C | |||
| ) | [explicit] |
| lltok::Kind llvm::LLLexer::Lex | ( | ) | [inline] |
| LocTy llvm::LLLexer::getLoc | ( | ) | const [inline] |
Definition at line 56 of file LLLexer.h.
References llvm::SMLoc::getFromPointer().
Referenced by Error().
| lltok::Kind llvm::LLLexer::getKind | ( | ) | const [inline] |
| const std::string llvm::LLLexer::getStrVal | ( | ) | const [inline] |
| const APSInt& llvm::LLLexer::getAPSIntVal | ( | ) | const [inline] |
| const APFloat& llvm::LLLexer::getAPFloatVal | ( | ) | const [inline] |
Definition at line 28 of file LLLexer.cpp.
References llvm::SourceMgr::GetMessage().
Referenced by Error().
| bool llvm::LLLexer::Error | ( | const std::string & | Msg | ) | const [inline] |
| std::string LLLexer::getFilename | ( | ) | const |