[JITLink] Allow JITLinkContext::notifyResolved to return an Error.
authorLang Hames <lhames@gmail.com>
Thu, 30 Jul 2020 03:46:56 +0000 (20:46 -0700)
committerLang Hames <lhames@gmail.com>
Thu, 30 Jul 2020 22:26:18 +0000 (15:26 -0700)
commit9f1dcdca71c4109354ec916ad27c24caf269c705
treef41c246ad07bb93583034d5e7d251339111ec157
parent763671f387fdd00329c5b715d3ec6c62680f3f8e
[JITLink] Allow JITLinkContext::notifyResolved to return an Error.

This allows clients to detect invalid transformations applied by JITLink passes
(e.g. inserting or removing symbols in unexpected ways) and terminate linking
with an error.

This change is used to simplify the error propagation logic in
ObjectLinkingLayer.
llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
llvm/lib/ExecutionEngine/JITLink/JITLinkGeneric.cpp
llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp