summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker/LinkModules.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-03-05 23:08:47 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-03-05 23:08:47 +0000
commite43711d3929f37b79dd07d5cf84e18eb9c7519a2 (patch)
tree1696fb3e1e267f154432d14cc2bc3c72ccaf684d /llvm/lib/Linker/LinkModules.cpp
parent24f65c3ab782426b16f1ad758ec8d031ef36e409 (diff)
downloadbcm5719-llvm-e43711d3929f37b79dd07d5cf84e18eb9c7519a2.tar.gz
bcm5719-llvm-e43711d3929f37b79dd07d5cf84e18eb9c7519a2.zip
Resolve aliases to aliasees, where possible
llvm-svn: 47975
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index c4e1c20b526..f055b4af92f 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud