Make the C++ LTO API easier to use from C++ clients.
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 1 Jun 2015 20:08:30 +0000 (20:08 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 1 Jun 2015 20:08:30 +0000 (20:08 +0000)
commit3cc69d90f07d5047bd9fc2c4fa11ae859a2b1846
treeb3ad3a7876246a52581243efb0a851d550a687d6
parentd218565c04866c58f301bce5cccc8ce4ea368319
Make the C++ LTO API easier to use from C++ clients.

Start using C++ types such as StringRef and MemoryBuffer in the C++ LTO
API. In doing so, clarify the ownership of the native object file: the caller
now owns it, not the LTOCodeGenerator. The C libLTO library has been modified
to use a derived class of LTOCodeGenerator that owns the object file.

Differential Revision: http://reviews.llvm.org/D10114

llvm-svn: 238776
llvm/include/llvm/LTO/LTOCodeGenerator.h
llvm/lib/LTO/LTOCodeGenerator.cpp
llvm/tools/llvm-lto/llvm-lto.cpp
llvm/tools/lto/lto.cpp