error overloads

Synopses

Declared in <llvm/ProfileData/InstrProfReader.h>

Set the current error from E and return a matching InstrProfError.

Error
error(Error&& E);

Set the current error and return same.

Error
error(
    instrprof_error Err,
    std::string const& ErrMsg = "");

Return Value

  • An InstrProfError matching the recorded last error state.

  • Success when Err is success; otherwise an InstrProfError.

Parameters

Name

Description

E

Error to unwrap into the reader's last error state.

Err

Error code to record as the reader's last error.

ErrMsg

Optional message associated with Err.

Created with MrDocs