[llvm-commits] CVS: llvm/tools/llvm-ld/Linker.cpp
Reid Spencer
reid at x10sys.com
Wed Oct 27 16:19:07 PDT 2004
Changes in directory llvm/tools/llvm-ld:
Linker.cpp updated: 1.2 -> 1.3
---
Log message:
Change Library Names Not To Conflict With Others When Installed
---
Diffs of the changes: (+3 -0)
Index: llvm/tools/llvm-ld/Linker.cpp
diff -u llvm/tools/llvm-ld/Linker.cpp:1.2 llvm/tools/llvm-ld/Linker.cpp:1.3
--- llvm/tools/llvm-ld/Linker.cpp:1.2 Sat Sep 25 10:59:41 2004
+++ llvm/tools/llvm-ld/Linker.cpp Wed Oct 27 18:18:45 2004
@@ -86,6 +86,7 @@
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 @@
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())
More information about the llvm-commits
mailing list