unique_ptrify RuntimeDyldImpl::loadObject
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 3 Sep 2014 21:34:34 +0000 (21:34 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 3 Sep 2014 21:34:34 +0000 (21:34 +0000)
commit1c71488efcfd7b1ddf8d305abcd74fb59728cd67
tree342b8e13523707870714c31a037674a3258b5213
parent1ad925ccf8608266326b82c26144e2e67dff33af
unique_ptrify RuntimeDyldImpl::loadObject

I'm not sure this is a particularly helpful API (to pass ownership and
then return it unconditionally) rather than just pass the underlying
object by non-const reference, but this was the original API so I'll
just make it more safe/stable and anyone else is free to adjust that at
their whim, of course.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217081 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h