LLVM: llvm::InstrProfError Class Reference (original) (raw)
#include "[llvm/ProfileData/InstrProf.h](InstrProf%5F8h%5Fsource.html)"
Public Member Functions | |
---|---|
InstrProfError (instrprof_error Err, const Twine &ErrStr=Twine()) | |
std::string | message () const override |
Return the error message as a string. | |
void | log (raw_ostream &OS) const override |
Print an error message to an output stream. | |
std::error_code | convertToErrorCode () const override |
Convert this error to a std::error_code. | |
instrprof_error | get () const |
const std::string & | getMessage () const |
![]() |
|
const void * | dynamicClassID () const override |
bool | isA (const void *const ClassID) const override |
![]() |
|
virtual | ~ErrorInfoBase ()=default |
virtual void | log (raw_ostream &OS) const =0 |
Print an error message to an output stream. | |
virtual std::string | message () const |
Return the error message as a string. | |
virtual std::error_code | convertToErrorCode () const =0 |
Convert this error to a std::error_code. | |
virtual const void * | dynamicClassID () const =0 |
virtual bool | isA (const void *const ClassID) const |
template | |
bool | isA () const |
Static Public Member Functions | |
---|---|
static std::pair< instrprof_error, std::string > | take (Error E) |
Consume an Error and return the raw enum value contained within it, and the optional error message. | |
![]() |
|
static const void * | classID () |
![]() |
|
static const void * | classID () |
Static Public Attributes | |
---|---|
static char | ID = 0 |
Definition at line 404 of file InstrProf.h.
◆ convertToErrorCode()
std::error_code llvm::InstrProfError::convertToErrorCode ( ) const | inlineoverridevirtual |
---|
◆ get()
◆ getMessage()
const std::string & llvm::InstrProfError::getMessage ( ) const | inline |
---|
◆ log()
void llvm::InstrProfError::log ( raw_ostream & OS) const | inlineoverridevirtual |
---|
◆ message()
std::string llvm::InstrProfError::message ( ) const | overridevirtual |
---|
◆ take()
◆ ID
char llvm::InstrProfError::ID = 0 | static |
---|
The documentation for this class was generated from the following files:
- include/llvm/ProfileData/InstrProf.h
- lib/ProfileData/InstrProf.cpp