llvm::LLVMRemarkSetupErrorInfo

CRTP base for errors raised while setting up optimization remarks.

Synopsis

Declared in <llvm/IR/LLVMRemarkStreamer.h>

template<typename ThisError>
struct LLVMRemarkSetupErrorInfo
    : ErrorInfo<ThisError>

Base Classes

NameDescription
ErrorInfo<ThisError>Base class for user error types. Users should declare their error types like:

Member Functions

NameDescription
LLVMRemarkSetupErrorInfo [constructor]Construct from an Error, capturing its message and error code.
convertToErrorCode Convert this error into a std::error_code.
dynamicClassID Return the dynamic class ID for this error instance.
isA Return true if this error is an instance of ClassID or a parent.
log Write this error's message to OS.

Static Member Functions

NameDescription
classID Return the RTTI class identifier for ThisErrT.

Data Members

NameDescription
EC Error code associated with the setup failure.
Msg Human-readable description of the setup failure.

Using Declarations

NameDescription
Unnamed using Inherit constructors from the parent error-info type.

Derived Classes

NameDescription
LLVMRemarkSetupFileError Error raised when the remarks output file cannot be opened.
LLVMRemarkSetupFormatError Error raised when a remark serialization format is invalid.
LLVMRemarkSetupPatternError Error raised when a remark pass filter pattern is invalid.