Resolve aliases to aliasees, where possible

llvm-svn: 47975
This commit is contained in:
Anton Korobeynikov 2008-03-05 23:08:47 +00:00
parent 24f65c3ab7
commit e43711d392
1 changed files with 3 additions and 0 deletions

View File

@ -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;