[ORC] Switch to shared_ptr ownership for SymbolSources in VSOs.
authorLang Hames <lhames@gmail.com>
Wed, 21 Feb 2018 21:55:57 +0000 (21:55 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 21 Feb 2018 21:55:57 +0000 (21:55 +0000)
commita944589cc51ab4a693a52fa5188280910c148531
treec66262635ddb6c2a91a9be444126c77d7f94b842
parent40c9e5436d7ec7301a760984bb4312192e6bd6fb
[ORC] Switch to shared_ptr ownership for SymbolSources in VSOs.

This makes it easy to free a SymbolSource (and any related
resources) when the last reference in a VSO is dropped.

llvm-svn: 325727
llvm/include/llvm/ExecutionEngine/JITSymbol.h
llvm/include/llvm/ExecutionEngine/Orc/Core.h
llvm/lib/ExecutionEngine/Orc/Core.cpp
llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp