[llvm-commits] [llvm] r116910 - /llvm/trunk/tools/lto/LTOModule.cpp
Rafael Espindola
rafael.espindola at gmail.com
Tue Oct 19 21:57:22 PDT 2010
Author: rafael
Date: Tue Oct 19 23:57:22 2010
New Revision: 116910
URL: http://llvm.org/viewvc/llvm-project?rev=116910&view=rev
Log:
Record sysbols created by aliases. Fixes PR8414.
Modified:
llvm/trunk/tools/lto/LTOModule.cpp
Modified: llvm/trunk/tools/lto/LTOModule.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/LTOModule.cpp?rev=116910&r1=116909&r2=116910&view=diff
==============================================================================
--- llvm/trunk/tools/lto/LTOModule.cpp (original)
+++ llvm/trunk/tools/lto/LTOModule.cpp Tue Oct 19 23:57:22 2010
@@ -469,6 +469,15 @@
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) {
More information about the llvm-commits
mailing list