llvm::CodeGenDataReader::error

error overloads

Synopses

Declared in <llvm/CGData/CodeGenDataReader.h>

Record a CGDataError from E and return a matching error.

Error
error(Error&& E);
» more...

Set the current error and return same.

Error
error(
    cgdata_error Err,
    std::string const& ErrMsg = "");
» more...

Return Value

  • A CGDataError matching the recorded error state.
  • Success if Err is success, otherwise a CGDataError for Err.

Parameters

NameDescription
EError to consume; expected to contain a CGDataError.
ErrCodegen-data error code to record.
ErrMsgOptional detail message associated with Err.