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
This commit is contained in:
Reid Spencer
2004-10-27 23:18:45 +00:00
parent af362fc492
commit 6cb21d443e
51 changed files with 101 additions and 92 deletions

View File

@ -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())