[PATCH] D32317: [coff] for /msvclto, pass archive members with prevailing symbols first

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 20 15:52:46 PDT 2017


pcc added inline comments.


================
Comment at: COFF/Driver.cpp:156
     Obj = make<ObjectFile>(MB);
+    if (Config->MSVCLTO) {
+      // Write the member to a temporary file so we can link it early
----------------
Instead of handling this here, I think you can handle it entirely within the `/msvclto` implementation by creating temporary files for all members of `Symtab.ObjectFiles` that have a `ParentName`.


https://reviews.llvm.org/D32317





More information about the llvm-commits mailing list