summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-12-01 18:41:30 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-12-01 18:41:30 +0000
commit4808c6d064fd2408a35de72e7285dd30acd87c92 (patch)
treebc0d80fd7e3817b72a6fce8bccc16a914a8cc8c6 /llvm/lib/Linker
parentb17f739808a7956b6b443ac1e005c42872fdc4a8 (diff)
downloadbcm5719-llvm-4808c6d064fd2408a35de72e7285dd30acd87c92.tar.gz
bcm5719-llvm-4808c6d064fd2408a35de72e7285dd30acd87c92.zip
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. llvm-svn: 254434
Diffstat (limited to 'llvm/lib/Linker')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index f745df56f9a..c57c70e322a 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/lib/Linker/LinkModules.cpp
@@ -2071,10 +2071,6 @@ bool Linker::linkInModule(Module *Src, unsigned Flags,
return RetCode;
}
-void Linker::setModule(Module *Dst) {
- init(Dst, DiagnosticHandler);
-}
-
//===----------------------------------------------------------------------===//
// LinkModules entrypoint.
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud