OSDN Git Service

[ORC] Make RuntimeDyldObjectLinkingLayer2 take memory managers by unique_ptr.
authorLang Hames <lhames@gmail.com>
Thu, 6 Sep 2018 19:39:26 +0000 (19:39 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 6 Sep 2018 19:39:26 +0000 (19:39 +0000)
commit4d5299cbaebe87897f1dc24cf3987bb78713ff51
treeacd7653076d81e24a6f274a449eb95de74b061e5
parent28fce59a17518635883b11f258e16a3ed14eb990
[ORC] Make RuntimeDyldObjectLinkingLayer2 take memory managers by unique_ptr.

The existing memory manager API can not be shared between objects when linking
concurrently (since there is no way to know which concurrent allocations were
performed on behalf of which object, and hence which allocations would be safe
to finalize when finalizeMemory is called). For now, we can work around this by
requiring a new memory manager for each object.

This change only affects the concurrent version of the ORC APIs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341579 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/Orc/LLJIT.h
include/llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h
lib/ExecutionEngine/Orc/LLJIT.cpp
unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayer2Test.cpp