Delete the setModule method from the Linker.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 1 Dec 2015 18:41:30 +0000 (18:41 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 1 Dec 2015 18:41:30 +0000 (18:41 +0000)
commit1d06f0bf4e070385fbb6d112318c190fc9aadda8
treed2a6cc86fec5159ef3bd5aa5d581ecbd2ff181a1
parent0fb89f7b8241946815f6eb9ae59589e184d9b016
Delete the setModule method from the Linker.

It was only used from LTO for a debug feature, and LTO can just create
another linker.

It is pretty odd to have a method to reset the module in the middle of a
link. It would make IdentifiedStructTypes inconsistent with the Module
for example.

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