summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/CloneModule.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-11-27 09:55:56 +0000
committerBill Wendling <isanbard@gmail.com>2012-11-27 09:55:56 +0000
commitee5984df399aa360047e2e4ac9209bd886bc4961 (patch)
tree37b61bcdea511e1e137a16c16bb7def649f47f49 /llvm/lib/Transforms/Utils/CloneModule.cpp
parent69a071d5a676d66761dc9808265795cff17d1b80 (diff)
downloadbcm5719-llvm-ee5984df399aa360047e2e4ac9209bd886bc4961.tar.gz
bcm5719-llvm-ee5984df399aa360047e2e4ac9209bd886bc4961.zip
Remove the dependent libraries feature.
The dependent libraries feature was never used and has bit-rotted. Remove it. llvm-svn: 168694
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneModule.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/CloneModule.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneModule.cpp b/llvm/lib/Transforms/Utils/CloneModule.cpp
index 1dac6b5b8bc..22a8e4bc2df 100644
--- a/llvm/lib/Transforms/Utils/CloneModule.cpp
+++ b/llvm/lib/Transforms/Utils/CloneModule.cpp
@@ -38,10 +38,6 @@ Module *llvm::CloneModule(const Module *M, ValueToValueMapTy &VMap) {
New->setTargetTriple(M->getTargetTriple());
New->setModuleInlineAsm(M->getModuleInlineAsm());
- // Copy all of the dependent libraries over.
- for (Module::lib_iterator I = M->lib_begin(), E = M->lib_end(); I != E; ++I)
- New->addLibrary(*I);
-
// Loop over all of the global variables, making corresponding globals in the
// new module. Here we add them to the VMap and to the new Module. We
// don't worry about attributes or initializers, they will come later.
OpenPOWER on IntegriCloud