HomePhabricator

[MCJIT] Check for RuntimeDyld errors in MCJIT::finalizeLoadedModules.

Authored by lhames on Mar 13 2020, 9:24 AM.

Description

[MCJIT] Check for RuntimeDyld errors in MCJIT::finalizeLoadedModules.

Patch based on https://reviews.llvm.org/D75912 by Alexander Shishkin. Thanks
Alexander!

To minimize disruption to existing clients, who may be relying on the fact that
unused references to unresolved symbols do not generate an error, this patch
makes error checking opt-in: Clients can call ExecutionEngine::hasError or
LLVMExecutionEngineGetError to check whether and error has occurred.

Differential revision: https://reviews.llvm.org/D75912

Details

Committed
lhamesMar 13 2020, 1:58 PM
Differential Revision
D75912: Missing Dyld error handling
Parents
rGb5aaa60962f7: Fix "unused variable" warning in NDEBUG builds.
Branches
Unknown
Tags
Unknown