diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-10-27 23:18:45 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-10-27 23:18:45 +0000 |
commit | 6cb21d443eff9369e4f9035af28efd627e8f3909 (patch) | |
tree | c4c0cdb6f9862bec1dd6df8f2c33b865a2f11cac /tools/llvm-ld/Linker.cpp | |
parent | af362fc492bf0bfc6e43e3025621834ea031a29e (diff) |
Change Library Names Not To Conflict With Others When Installed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17286 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ld/Linker.cpp')
-rw-r--r-- | tools/llvm-ld/Linker.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/llvm-ld/Linker.cpp b/tools/llvm-ld/Linker.cpp index 4af152b155..9d1999517f 100644 --- a/tools/llvm-ld/Linker.cpp +++ b/tools/llvm-ld/Linker.cpp @@ -86,6 +86,7 @@ llvm::GetAllUndefinedSymbols(Module *M, std::set<std::string> DefinedSymbols; UndefinedSymbols.clear(); // Start out empty + // Add in all the external functions for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I) if (I->hasName()) { if (I->isExternal()) @@ -93,6 +94,8 @@ llvm::GetAllUndefinedSymbols(Module *M, else if (!I->hasInternalLinkage()) DefinedSymbols.insert(I->getName()); } + + // Add in all the external globals for (Module::giterator I = M->gbegin(), E = M->gend(); I != E; ++I) if (I->hasName()) { if (I->isExternal()) |