[PATCH] D12205: LTO: Simplify merged module ownership.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 11:59:16 PDT 2015
pcc created this revision.
pcc added reviewers: joker.eph, dexonsmith.
pcc added a subscriber: llvm-commits.
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).
This changes the C API semantics (lto_codegen_set_module now destroys its
argument) so I have incremented the API version.
http://reviews.llvm.org/D12205
Files:
include/llvm-c/lto.h
include/llvm/LTO/LTOCodeGenerator.h
include/llvm/LTO/LTOModule.h
include/llvm/Linker/Linker.h
lib/LTO/LTOCodeGenerator.cpp
lib/Linker/LinkModules.cpp
tools/llvm-lto/llvm-lto.cpp
tools/lto/lto.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12205.32721.patch
Type: text/x-patch
Size: 7113 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150820/a2c99b0d/attachment.bin>
More information about the llvm-commits
mailing list