[PATCH] D37794: [LLD] [MinGW] Only apply -Bstatic to following libraries

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 13 09:59:49 PDT 2017


ruiu accepted this revision.
ruiu added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: MinGW/Driver.cpp:178-180
+  for (auto *A :
+       Args.filtered(OPT_INPUT, OPT_l, OPT_whole_archive, OPT_no_whole_archive,
+                     OPT_Bstatic, OPT_Bdynamic)) {
----------------
Since you have a switch in this loop, you don't need to use `filtered`. Just `for (auto *A : Args)` should work.


https://reviews.llvm.org/D37794





More information about the llvm-commits mailing list