[Orc] Make the ObjectLinkingLayer take ownership of object files until
authorLang Hames <lhames@gmail.com>
Mon, 2 Feb 2015 04:32:17 +0000 (04:32 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 2 Feb 2015 04:32:17 +0000 (04:32 +0000)
commit81ab23434402703603b7f99ca036f21c27c9c100
tree96cfbb9313c8a74d0dfb062b53fd1446116e21f5
parenta73abdb6809f4565b42bf66525200b0ea3cf332a
[Orc] Make the ObjectLinkingLayer take ownership of object files until
finalization time.

As currently implemented, RuntimeDyldELF requires the original object
file to be avaible when relocations are being resolved. This patch
ensures that the ObjectLinkingLayer preserves it until then. In the
future RuntimeDyldELF should be rewritten to remove this requirement, at
which point this patch can be reverted.

Regression test cases for Orc (which include coverage of this bug) will
be committed shortly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227778 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/Orc/IRCompileLayer.h
include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h