Add a sys::OwningMemoryBlock class, which is a sys::MemoryBlock that owns its
authorLang Hames <lhames@gmail.com>
Sat, 31 Oct 2015 00:55:32 +0000 (00:55 +0000)
committerLang Hames <lhames@gmail.com>
Sat, 31 Oct 2015 00:55:32 +0000 (00:55 +0000)
commit2cbdea79bd9ba472aeeaacb32b3b01b67f542624
tree3203de1c11f81001f36546ce324abc6a0ffaf623
parentf73144bb0330cc615083dd20a550fecdfd0fa4c4
Add a sys::OwningMemoryBlock class, which is a sys::MemoryBlock that owns its
underlying memory, and will automatically release it on destruction.

Use this to tidy up the orc::IndirectStubsInfo class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251731 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/Orc/OrcTargetSupport.h
include/llvm/Support/Memory.h
lib/ExecutionEngine/Orc/OrcTargetSupport.cpp