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)
commit3fcf5a99cbe7d7c18d235787ff8d44823754f21b
tree1fb11b129721167608514390df7e5faf9d41f0cc
parent9be6a55ba0e2174d888cd114a2c7c69ca3d570fb
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238776 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/LTO/LTOCodeGenerator.h
lib/LTO/LTOCodeGenerator.cpp
tools/llvm-lto/llvm-lto.cpp
tools/lto/lto.cpp