This is an archive of the discontinued LLVM Phabricator instance.

Improve readability of MinGW driver. NFC.
ClosedPublic

Authored by ruiu on Sep 11 2017, 10:36 AM.

Details

Summary

In addition to removing a few global variables and functions, I believe
this patch improves code readability a bit in general.

Diff Detail

Repository
rL LLVM

Event Timeline

ruiu created this revision.Sep 11 2017, 10:36 AM
mstorsjo edited edge metadata.Sep 11 2017, 11:32 AM

Looks good to me on a read-through, although I didn't test run it yet.

mstorsjo accepted this revision.Sep 11 2017, 12:11 PM

Tested in a proper mingw/clang/lld setup, LGTM.

This revision is now accepted and ready to land.Sep 11 2017, 12:11 PM
pcc added a subscriber: pcc.Sep 11 2017, 1:01 PM
pcc added inline comments.
lld/MinGW/Driver.cpp
176 ↗(On Diff #114631)

It looks like you are changing the link order; now all non--l inputs will appear before -l inputs. I don't think this should matter except in some edge cases, but it would at least mean that this change is not NFC.

ruiu updated this revision to Diff 114660.Sep 11 2017, 1:12 PM
  • Address review comment.
lld/MinGW/Driver.cpp
176 ↗(On Diff #114631)

That's true. For some reason I believed that this wouldn't change the behavior, but it indeed does. Fixed.

pcc accepted this revision.Sep 11 2017, 1:17 PM

LGTM

This revision was automatically updated to reflect the committed changes.