diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-11-30 22:54:48 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-11-30 22:54:48 +0000 |
commit | 3f2352e23ed71897de0ccb319e785dc316eac157 (patch) | |
tree | 4743b4e71167a1cb47dd8b716b6cc700a367dd03 /llvm/lib/Linker/LinkArchives.cpp | |
parent | 798e0349c048a6c3e9a9371eec105b5eb37ca030 (diff) | |
download | bcm5719-llvm-3f2352e23ed71897de0ccb319e785dc316eac157.tar.gz bcm5719-llvm-3f2352e23ed71897de0ccb319e785dc316eac157.zip |
Revert version 1.39. It breaks the ordering of the library processing.
llvm-svn: 18399
Diffstat (limited to 'llvm/lib/Linker/LinkArchives.cpp')
-rw-r--r-- | llvm/lib/Linker/LinkArchives.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/lib/Linker/LinkArchives.cpp b/llvm/lib/Linker/LinkArchives.cpp index 3ba10fbef6b..af17ff31b88 100644 --- a/llvm/lib/Linker/LinkArchives.cpp +++ b/llvm/lib/Linker/LinkArchives.cpp @@ -371,19 +371,12 @@ bool llvm::LinkFiles(const char *progname, Module *HeadModule, /// TRUE - Error. /// void llvm::LinkLibraries(const char *progname, Module *HeadModule, - const std::vector<std::string> &Libs, + const std::vector<std::string> &Libraries, const std::vector<std::string> &LibPaths, bool Verbose, bool Native) { // String in which to receive error messages. std::string ErrorMessage; - // Build a set of library names that we should try, including the - // HeadModule's dependent libraries. We use a set here to eliminate - // duplicates between the module's libraries and the argument Libs. - Module::LibraryListType Libraries(HeadModule->getLibraries()); - Libraries.insert(Libs.begin(),Libs.end()); - - // For each library for (unsigned i = 0; i < Libraries.size(); ++i) { // Determine where this library lives. std::string Pathname = FindLib(Libraries[i], LibPaths); |