[Object] Modify OwningBinary's interface to separate inspection from ownership.
authorLang Hames <lhames@gmail.com>
Fri, 31 Oct 2014 21:37:49 +0000 (21:37 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 31 Oct 2014 21:37:49 +0000 (21:37 +0000)
commitf04de6ec48881aaa88004e7ddb36beb352339ef2
treea2c5d8f5eefb9a09fc8e9dee82ea7270e1a7ecd5
parentfca26da4460130992daaa8adfe4f74aed0c75815
[Object] Modify OwningBinary's interface to separate inspection from ownership.

The getBinary and getBuffer method now return ordinary pointers of appropriate
const-ness. Ownership is transferred by calling takeBinary(), which returns a
pair of the Binary and a MemoryBuffer.

llvm-svn: 221003
llvm/include/llvm/Object/Binary.h
llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
llvm/lib/ProfileData/CoverageMappingReader.cpp
llvm/tools/llvm-cov/TestingSupport.cpp
llvm/tools/llvm-symbolizer/LLVMSymbolize.cpp
llvm/tools/llvm-symbolizer/LLVMSymbolize.h