projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5a4bd8
)
Resolve aliases to aliasees, where possible
author
Anton Korobeynikov
<asl@math.spbu.ru>
Wed, 5 Mar 2008 23:08:47 +0000
(23:08 +0000)
committer
Anton Korobeynikov
<asl@math.spbu.ru>
Wed, 5 Mar 2008 23:08:47 +0000
(23:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47975
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 c4e1c20b526b04602cddf7ac2fa7c00dc4ec1ef5..f055b4af92f707a60ebc85ca0d3a9ce1f1d6e421 100644
(file)
--- a/
lib/Linker/LinkModules.cpp
+++ b/
lib/Linker/LinkModules.cpp
@@
-1159,6
+1159,9
@@
Linker::LinkModules(Module *Dest, Module *Src, std::string *ErrorMsg) {
// If there were any appending global variables, link them together now.
if (LinkAppendingVars(Dest, AppendingVars, ErrorMsg)) return true;
+ // Resolve all uses of aliases with aliasees
+ if (ResolveAliases(Dest)) return true;
+
// If the source library's module id is in the dependent library list of the
// destination library, remove it since that module is now linked in.
sys::Path modId;