Remove the dependent libraries feature.
[oota-llvm.git] / lib / Transforms / Utils / CloneModule.cpp
index 1dac6b5b8bce55cb81c4be1a2a3ada55447a763a..22a8e4bc2dfd3c089cca507c89b25be4cdb22400 100644 (file)
@@ -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.