Convert Err to an error_code and emit diagnostics into Ctx.
Declared in <llvm/Bitcode/BitcodeReader.h>
std::error_code
errorToErrorCodeAndEmitErrors(
LLVMContext& Ctx,
Error Err);
Compatibility helper for legacy clients that expect std::error_code. FIXME: Remove these functions once no longer needed by the C and libLTO APIs.
The corresponding std::error_code after emitting diagnostics.
| Name | Description |
|---|---|
| Ctx | Context that receives diagnostic messages. |
| Err | Error to convert and consume. |