Record sysbols created by aliases. Fixes PR8414.

llvm-svn: 116910
This commit is contained in:
Rafael Espindola 2010-10-20 04:57:22 +00:00
parent 0f54a81d63
commit 749c19f614

View File

@ -469,6 +469,15 @@ void LTOModule::lazyParseSymbols() {
pos = inlineAsm.find(glbl, pend);
}
// add aliases
for (Module::alias_iterator i = _module->alias_begin(),
e = _module->alias_end(); i != e; ++i) {
if (i->isDeclaration())
addPotentialUndefinedSymbol(i, mangler);
else
addDefinedDataSymbol(i, mangler);
}
// make symbols for all undefines
for (StringMap<NameAndAttributes>::iterator it=_undefines.begin();
it != _undefines.end(); ++it) {