Revert "[ORC] Switch from shared_ptr to unique_ptr for addModule methods."
authorReid Kleckner <rnk@google.com>
Wed, 14 Mar 2018 21:32:34 +0000 (21:32 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 14 Mar 2018 21:32:34 +0000 (21:32 +0000)
commitc7fd1540b3009e576060b3ed01e59370efd8da0a
tree9b4c1e157754d1f6d289bbd298b9dcf82d454a49
parent11f7f9908b139f480c9571c723ddffa3e8e7a08c
Revert "[ORC] Switch from shared_ptr to unique_ptr for addModule methods."

This reverts commit r327566, it breaks
test/ExecutionEngine/OrcMCJIT/test-global-ctors.ll.

The test doesn't crash with a stack trace, unfortunately. It merely
returns 1 as the exit code.

ASan didn't produce a report, and I reproduced this on my Linux machine
and Windows box.

llvm-svn: 327576
17 files changed:
llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h
llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h
llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h
llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/KaleidoscopeJIT.h
llvm/include/llvm-c/OrcBindings.h
llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
llvm/include/llvm/ExecutionEngine/Orc/IRCompileLayer.h
llvm/include/llvm/ExecutionEngine/Orc/IRTransformLayer.h
llvm/include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h
llvm/lib/ExecutionEngine/Orc/OrcCBindings.cpp
llvm/lib/ExecutionEngine/Orc/OrcCBindingsStack.h
llvm/lib/ExecutionEngine/Orc/OrcMCJITReplacement.cpp
llvm/lib/ExecutionEngine/Orc/OrcMCJITReplacement.h
llvm/tools/lli/OrcLazyJIT.cpp
llvm/tools/lli/OrcLazyJIT.h
llvm/unittests/ExecutionEngine/Orc/ObjectTransformLayerTest.cpp
llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp