OSDN Git Service

[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)
commit734c4808f82b52d108e5ddbf78bf7338b2b226e0
tree506630e42826e48b96ee3925ae3db8e71f75fc51
parent40be992c34cca021bea3ac451d6d3bdbd96527af
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@325727 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/JITSymbol.h
include/llvm/ExecutionEngine/Orc/Core.h
lib/ExecutionEngine/Orc/Core.cpp
unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp