Change linkInModule to take a std::unique_ptr.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 16 Dec 2015 23:16:33 +0000 (23:16 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 16 Dec 2015 23:16:33 +0000 (23:16 +0000)
commitd912be98f8ebfa99ab9fa2d985d3f4e9cddf2df6
tree53c875efa5c19336c13354b0678726a84fcf6f6e
parent2f9965d1349581a9e56612aac9f17e823c7e7c3d
Change linkInModule to take a std::unique_ptr.

Passing in a std::unique_ptr should help find errors when the module
is used after being linked into another module.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255842 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
bindings/go/llvm/linker.go
bindings/ocaml/linker/linker_ocaml.c
bindings/ocaml/linker/llvm_linker.ml
bindings/ocaml/linker/llvm_linker.mli
docs/ReleaseNotes.rst
include/llvm-c/Linker.h
include/llvm/Linker/Linker.h
lib/LTO/LTOCodeGenerator.cpp
lib/Linker/LinkModules.cpp
lib/Transforms/IPO/FunctionImport.cpp
test/Bindings/OCaml/linker.ml
tools/bugpoint/BugDriver.cpp
tools/bugpoint/Miscompilation.cpp
tools/llvm-link/llvm-link.cpp
unittests/Linker/LinkModulesTest.cpp