MCPcopy Create free account
hub / github.com/GANGE666/xVMP / errorToErrorCodeAndEmitErrors

Method errorToErrorCodeAndEmitErrors

src/lib/Bitcode/Reader/BitcodeReader.cpp:761–772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

759} // end anonymous namespace
760
761std::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
774BitcodeReader::BitcodeReader(BitstreamCursor Stream, StringRef Strtab,
775 StringRef ProducerIdentification,

Callers

nothing calls this directly

Calls 5

handleAllErrorsFunction · 0.85
moveFunction · 0.50
convertToErrorCodeMethod · 0.45
emitErrorMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected