mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-20 18:56:04 +00:00
Record sysbols created by aliases. Fixes PR8414.
llvm-svn: 116910
This commit is contained in:
parent
0f54a81d63
commit
749c19f614
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user