mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-14 11:24:48 +00:00
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:
@ -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())
|
||||
|
Reference in New Issue
Block a user