diff options
| author | Stefan Gränitz <stefan.graenitz@gmail.com> | 2021-01-15 12:26:04 +0100 |
|---|---|---|
| committer | Stefan Gränitz <stefan.graenitz@gmail.com> | 2021-01-15 12:53:41 +0100 |
| commit | cf905274c6f4ec119fdb06a283070dcae4ed5881 (patch) | |
| tree | d7b9505fa41e5d38a582412f7e21ecea24cd8f19 /llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp | |
| parent | a5eb9df1e3ba0a1c5d755f29f6f4cdcca4aec285 (diff) | |
[Orc] Allow LLJITBuilder's CreateObjectLinkingLayer to return errors
It can be useful for an ObjectLinkingLayerCreator to allow callee errors to get propagated to the builder. Specifically, this is the case when the ObjectLayer uses the EHFrameRegistrationPlugin, because it requires a TPCEHFrameRegistrar and instantiation for it may fail (e.g. if the required registration symbols are missing in the target process).
Reviewed By: lhames
Differential Revision: https://reviews.llvm.org/D94690
Diffstat (limited to 'llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp')
| -rw-r--r-- | llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp b/llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp index f349ce900e61..36d28ab1aaaa 100644 --- a/llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp +++ b/llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp @@ -147,7 +147,7 @@ int main(int argc, char *argv[]) { ES, std::make_unique<jitlink::InProcessMemoryManager>()); // Add an instance of our plugin. ObjLinkingLayer->addPlugin(std::make_unique<MyPlugin>()); - return ObjLinkingLayer; + return std::move(ObjLinkingLayer); }) .create()); |
