LTO: Simplify merged module ownership.
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 24 Aug 2015 22:22:53 +0000 (22:22 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 24 Aug 2015 22:22:53 +0000 (22:22 +0000)
commit8c1602df5088d633d11437a1df2121fdd1946349
treea66a291178fd5ee44363fcc8753bab670cefe751
parent3a9c43563bb0604b6bfcc7d5a44a0331633593ce
LTO: Simplify merged module ownership.

This change moves LTOCodeGenerator's ownership of the merged module to a
field of type std::unique_ptr<Module>. This helps simplify parts of the code
and clears the way for the module to be consumed by LLVM CodeGen (see D12132
review comments).

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

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