OSDN Git Service

[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)
commit7b8ba815027ba92503e258d083949f05fec5cc8c
tree3ab736081eca5d6dc21e308e2a52adfac8341f27
parent7dd15e65fb20b2b515b5ef8d942974b404b7e876
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221003 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/Binary.h
lib/ExecutionEngine/MCJIT/MCJIT.cpp
lib/ProfileData/CoverageMappingReader.cpp
tools/llvm-cov/TestingSupport.cpp
tools/llvm-symbolizer/LLVMSymbolize.cpp
tools/llvm-symbolizer/LLVMSymbolize.h