llvm::errorToErrorCode

Helper for converting an ECError to a std::error_code.

Synopsis

Declared in <llvm/Support/Error.h>

std::error_code
errorToErrorCode(Error Err);

Description

This method requires that Err be Error() or an ECError, otherwise it will trigger a call to abort().

Return Value

The corresponding std::error_code.

Parameters

NameDescription
ErrError that must be success or an ECError.