LLVM  8.0.1
Public Types | Public Member Functions | List of all members
llvm::LLLexer Class Reference

#include "AsmParser/LLLexer.h"

Public Types

typedef SMLoc LocTy
 

Public Member Functions

 LLLexer (StringRef StartBuf, SourceMgr &SM, SMDiagnostic &, LLVMContext &C)
 
lltok::Kind Lex ()
 
LocTy getLoc () const
 
lltok::Kind getKind () const
 
const std::string & getStrVal () const
 
TypegetTyVal () const
 
unsigned getUIntVal () const
 
const APSIntgetAPSIntVal () const
 
const APFloatgetAPFloatVal () const
 
void setIgnoreColonInIdentifiers (bool val)
 
bool Error (LocTy ErrorLoc, const Twine &Msg) const
 
bool Error (const Twine &Msg) const
 
void Warning (LocTy WarningLoc, const Twine &Msg) const
 
void Warning (const Twine &Msg) const
 

Detailed Description

Definition at line 29 of file LLLexer.h.

Member Typedef Documentation

◆ LocTy

Definition at line 57 of file LLLexer.h.

Constructor & Destructor Documentation

◆ LLLexer()

LLLexer::LLLexer ( StringRef  StartBuf,
SourceMgr SM,
SMDiagnostic Err,
LLVMContext C 
)
explicit

Definition at line 160 of file LLLexer.cpp.

Member Function Documentation

◆ Error() [1/2]

bool LLLexer::Error ( LocTy  ErrorLoc,
const Twine Msg 
) const

◆ Error() [2/2]

bool llvm::LLLexer::Error ( const Twine Msg) const
inline

Definition at line 71 of file LLLexer.h.

References Error(), getLoc(), and Warning().

Referenced by Error().

◆ getAPFloatVal()

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

Definition at line 64 of file LLLexer.h.

Referenced by FunctionNumber().

◆ getAPSIntVal()

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

Definition at line 63 of file LLLexer.h.

Referenced by createGlobalFwdRef(), FunctionNumber(), and parseOptionalLinkageAux().

◆ getKind()

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

◆ getLoc()

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

◆ getStrVal()

const std::string& llvm::LLLexer::getStrVal ( ) const
inline

◆ getTyVal()

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

Definition at line 61 of file LLLexer.h.

Referenced by parseOptionalLinkageAux().

◆ getUIntVal()

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

Definition at line 62 of file LLLexer.h.

Referenced by FunctionNumber(), maybeSetDSOLocal(), and parseOptionalLinkageAux().

◆ Lex()

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

◆ setIgnoreColonInIdentifiers()

void llvm::LLLexer::setIgnoreColonInIdentifiers ( bool  val)
inline

Definition at line 66 of file LLLexer.h.

References Error().

◆ Warning() [1/2]

void LLLexer::Warning ( LocTy  WarningLoc,
const Twine Msg 
) const

Definition at line 34 of file LLLexer.cpp.

References llvm::SourceMgr::DK_Warning, and llvm::SourceMgr::PrintMessage().

Referenced by Error().

◆ Warning() [2/2]

void llvm::LLLexer::Warning ( const Twine Msg) const
inline

Definition at line 74 of file LLLexer.h.

References getLoc(), and Warning().

Referenced by Warning().


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