[PATCH] Speculatively instantiate archive members

Shankar Kalpathi Easwaran shankarke at gmail.com
Fri Jan 16 11:14:18 PST 2015

Comment at: lib/Core/Resolver.cpp:285
@@ +284,3 @@
+        for (StringRef sym : archive->getDefinedSymbols())
+          _archiveMap[sym] = archive;
If there is more than one archive having the same symbol name, the last file with the same symbol would be parsed. The archive library file which appears in link order should be the first one to get picked.

Weak symbols and common symbols have the same name across different archives. This doesnot appear to handle the case where the right weak symbol need to be chosen or the right common symbol be chosen.



More information about the llvm-commits mailing list