diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-11-27 09:55:56 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-11-27 09:55:56 +0000 |
commit | ee5984df399aa360047e2e4ac9209bd886bc4961 (patch) | |
tree | 37b61bcdea511e1e137a16c16bb7def649f47f49 /llvm/lib/Linker/LinkModules.cpp | |
parent | 69a071d5a676d66761dc9808265795cff17d1b80 (diff) | |
download | llvm-ee5984df399aa360047e2e4ac9209bd886bc4961.zip llvm-ee5984df399aa360047e2e4ac9209bd886bc4961.tar.gz llvm-ee5984df399aa360047e2e4ac9209bd886bc4961.tar.bz2 |
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/Linker/LinkModules.cpp')
-rw-r--r-- | llvm/lib/Linker/LinkModules.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp index a6599bf..62f9d193 100644 --- a/llvm/lib/Linker/LinkModules.cpp +++ b/llvm/lib/Linker/LinkModules.cpp @@ -1187,19 +1187,6 @@ bool ModuleLinker::run() { SrcM->getModuleInlineAsm()); } - // Update the destination module's dependent libraries list with the libraries - // from the source module. There's no opportunity for duplicates here as the - // Module ensures that duplicate insertions are discarded. - for (Module::lib_iterator SI = SrcM->lib_begin(), SE = SrcM->lib_end(); - SI != SE; ++SI) - DstM->addLibrary(*SI); - - // If the source library's module id is in the dependent library list of the - // destination library, remove it since that module is now linked in. - StringRef ModuleId = SrcM->getModuleIdentifier(); - if (!ModuleId.empty()) - DstM->removeLibrary(sys::path::stem(ModuleId)); - // Loop over all of the linked values to compute type mappings. computeTypeMapping(); |