LLVM
8.0.1
|
#include "llvm/ProfileData/InstrProf.h"
Public Member Functions | |
InstrProfError (instrprof_error Err) | |
std::string | message () const override |
Return the error message as a string. More... | |
void | log (raw_ostream &OS) const override |
Print an error message to an output stream. More... | |
std::error_code | convertToErrorCode () const override |
Convert this error to a std::error_code. More... | |
instrprof_error | get () const |
Public Member Functions inherited from llvm::ErrorInfo< InstrProfError > | |
const void * | dynamicClassID () const override |
bool | isA (const void *const ClassID) const override |
Public Member Functions inherited from llvm::ErrorInfoBase | |
virtual | ~ErrorInfoBase ()=default |
template<typename ErrorInfoT > | |
bool | isA () const |
Static Public Member Functions | |
static instrprof_error | take (Error E) |
Consume an Error and return the raw enum value contained within it. More... | |
Static Public Member Functions inherited from llvm::ErrorInfo< InstrProfError > | |
static const void * | classID () |
Static Public Member Functions inherited from llvm::ErrorInfoBase | |
static const void * | classID () |
Static Public Attributes | |
static char | ID = 0 |
Definition at line 306 of file InstrProf.h.
|
inline |
Definition at line 308 of file InstrProf.h.
|
inlineoverridevirtual |
Convert this error to a std::error_code.
This is a temporary crutch to enable interaction with code still using std::error_code. It will be removed in the future.
Implements llvm::ErrorInfoBase.
Definition at line 316 of file InstrProf.h.
References llvm::make_error_code().
|
inline |
Definition at line 320 of file InstrProf.h.
|
inlineoverridevirtual |
Print an error message to an output stream.
Implements llvm::ErrorInfoBase.
Definition at line 314 of file InstrProf.h.
|
overridevirtual |
Return the error message as a string.
Reimplemented from llvm::ErrorInfoBase.
Definition at line 209 of file InstrProf.cpp.
References getInstrProfErrString().
|
inlinestatic |
Consume an Error and return the raw enum value contained within it.
The Error must either be a success value, or contain a single InstrProfError.
Definition at line 324 of file InstrProf.h.
Referenced by llvm::IndexedInstrProfReader::create(), llvm::InstrProfReader::error(), llvm::coverage::CounterMappingContext::evaluate(), and llvm::IndexedInstrProfReader::getSymtab().
|
static |
Definition at line 333 of file InstrProf.h.