diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-03-05 23:08:47 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-03-05 23:08:47 +0000 |
commit | 3db9191baf5f5229a2f4d204c6332ba27fff81d0 (patch) | |
tree | fef75d9966b9b9d517f993297d193a63577c3050 /lib/Linker/LinkModules.cpp | |
parent | b5a4bd86df527c7d164197906861d2ca6f48678d (diff) |
Resolve aliases to aliasees, where possible
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47975 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker/LinkModules.cpp')
-rw-r--r-- | lib/Linker/LinkModules.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index c4e1c20b52..f055b4af92 100644 --- 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; |