error overloads
Synopses
Declared in <llvm/ProfileData/InstrProfReader.h>
Set the current error from E and return a matching InstrProfError.
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
Erris 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 |
Created with MrDocs