LLVM API Documentation
#include <LLLexer.h>
Public Types | |
| typedef SMLoc | LocTy |
Public Member Functions | |
| LLLexer (StringRef 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 |
| void | Warning (LocTy WarningLoc, const Twine &Msg) const |
| void | Warning (const Twine &Msg) const |
| typedef SMLoc llvm::LLLexer::LocTy |
| LLLexer::LLLexer | ( | StringRef | StartBuf, |
| SourceMgr & | SM, | ||
| SMDiagnostic & | Err, | ||
| LLVMContext & | C | ||
| ) | [explicit] |
Definition at line 164 of file LLLexer.cpp.
References llvm::StringRef::begin().
| llvm::LLLexer::~LLLexer | ( | ) | [inline] |
| bool LLLexer::Error | ( | LocTy | L, |
| const Twine & | Msg | ||
| ) | const |
Definition at line 32 of file LLLexer.cpp.
References llvm::SourceMgr::DK_Error, and llvm::SourceMgr::GetMessage().
| bool llvm::LLLexer::Error | ( | const Twine & | Msg | ) | const [inline] |
| const APFloat& llvm::LLLexer::getAPFloatVal | ( | ) | const [inline] |
| const APSInt& llvm::LLLexer::getAPSIntVal | ( | ) | const [inline] |
| 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().
| const std::string& llvm::LLLexer::getStrVal | ( | ) | const [inline] |
| Type* llvm::LLLexer::getTyVal | ( | ) | const [inline] |
| unsigned llvm::LLLexer::getUIntVal | ( | ) | const [inline] |
| lltok::Kind llvm::LLLexer::Lex | ( | ) | [inline] |
Definition at line 50 of file LLLexer.h.
Referenced by if(), and llvm::LLParser::Run().
| void LLLexer::Warning | ( | LocTy | WarningLoc, |
| const Twine & | Msg | ||
| ) | const |
Definition at line 37 of file LLLexer.cpp.
References llvm::SourceMgr::DK_Warning, and llvm::SourceMgr::PrintMessage().
| void llvm::LLLexer::Warning | ( | const Twine & | Msg | ) | const [inline] |