OSDN Git Service

[ORC] Switch RTDyldObjectLinkingLayer to take a unique_ptr<MemoryBuffer> rather
authorLang Hames <lhames@gmail.com>
Wed, 21 Feb 2018 21:55:49 +0000 (21:55 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 21 Feb 2018 21:55:49 +0000 (21:55 +0000)
commitfc8ba497cd1a1af4ecae19a5b64bdbd71e065e14
tree0f02f63d5686d2e04dd5fc40eaf8102616385274
parent5c377f610d6b61a25855e494758905768085eb7f
[ORC] Switch RTDyldObjectLinkingLayer to take a unique_ptr<MemoryBuffer> rather
than a shared ObjectFile/MemoryBuffer pair.

There's no need to pre-parse the buffer into an ObjectFile before passing it
down to the linking layer, and moving the parsing into the linking layer allows
us remove the parsing code at each call site.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@325725 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/Orc/CompileUtils.h
include/llvm/ExecutionEngine/Orc/IRCompileLayer.h
include/llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h
include/llvm/ExecutionEngine/Orc/RemoteObjectLayer.h
lib/ExecutionEngine/Orc/OrcCBindingsStack.h
lib/ExecutionEngine/Orc/OrcMCJITReplacement.h
unittests/ExecutionEngine/Orc/ObjectTransformLayerTest.cpp
unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp
unittests/ExecutionEngine/Orc/RemoteObjectLayerTest.cpp