mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
Missed patch from my last commit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47977 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3db9191baf
commit
9f2ee70366
@ -1046,6 +1046,16 @@ static bool LinkAppendingVars(Module *M,
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool ResolveAliases(Module *Dest) {
|
||||
for (Module::alias_iterator I = Dest->alias_begin(), E = Dest->alias_end();
|
||||
I != E; ++I) {
|
||||
GlobalValue* GV = const_cast<GlobalValue*>(I->getAliasedGlobal());
|
||||
if (!GV->isDeclaration())
|
||||
I->replaceAllUsesWith(GV);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// LinkModules - This function links two modules together, with the resulting
|
||||
// left module modified to be the composite of the two input modules. If an
|
||||
|
Loading…
x
Reference in New Issue
Block a user