| 759 | } // end anonymous namespace |
| 760 | |
| 761 | std::error_code llvm::errorToErrorCodeAndEmitErrors(LLVMContext &Ctx, |
| 762 | Error Err) { |
| 763 | if (Err) { |
| 764 | std::error_code EC; |
| 765 | handleAllErrors(std::move(Err), [&](ErrorInfoBase &EIB) { |
| 766 | EC = EIB.convertToErrorCode(); |
| 767 | Ctx.emitError(EIB.message()); |
| 768 | }); |
| 769 | return EC; |
| 770 | } |
| 771 | return std::error_code(); |
| 772 | } |
| 773 | |
| 774 | BitcodeReader::BitcodeReader(BitstreamCursor Stream, StringRef Strtab, |
| 775 | StringRef ProducerIdentification, |
nothing calls this directly
no test coverage detected