summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ld/Linker.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-10-27 23:18:45 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-10-27 23:18:45 +0000
commit57cbe39d1e07ce52dd81f2d94cf5010d56edcab3 (patch)
tree290f5d51a2405b0cd2438b18f2d4c65b7e720505 /llvm/tools/llvm-ld/Linker.cpp
parent9f337bf96fa817ce4e36fc953b69a5c5c04b8f44 (diff)
downloadbcm5719-llvm-57cbe39d1e07ce52dd81f2d94cf5010d56edcab3.tar.gz
bcm5719-llvm-57cbe39d1e07ce52dd81f2d94cf5010d56edcab3.zip
Change Library Names Not To Conflict With Others When Installed
llvm-svn: 17286
Diffstat (limited to 'llvm/tools/llvm-ld/Linker.cpp')
-rw-r--r--llvm/tools/llvm-ld/Linker.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-ld/Linker.cpp b/llvm/tools/llvm-ld/Linker.cpp
index 4af152b155b..9d1999517fd 100644
--- a/llvm/tools/llvm-ld/Linker.cpp
+++ b/llvm/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())
OpenPOWER on IntegriCloud