projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3db9191
)
Missed patch from my last commit
author
Anton Korobeynikov
<asl@math.spbu.ru>
Wed, 5 Mar 2008 23:21:39 +0000
(23:21 +0000)
committer
Anton Korobeynikov
<asl@math.spbu.ru>
Wed, 5 Mar 2008 23:21:39 +0000
(23:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47977
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Linker/LinkModules.cpp
patch
|
blob
|
history
diff --git
a/lib/Linker/LinkModules.cpp
b/lib/Linker/LinkModules.cpp
index f055b4af92f707a60ebc85ca0d3a9ce1f1d6e421..0d8ba4e3e88bd821c66eb539e879ebdc2a647c5b 100644
(file)
--- a/
lib/Linker/LinkModules.cpp
+++ b/
lib/Linker/LinkModules.cpp
@@
-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