This is an archive of the discontinued LLVM Phabricator instance.

Merge DarwinLdDriver and Driver.
ClosedPublic

Authored by ruiu on Mar 1 2016, 4:21 PM.

Details

Reviewers
lhames
Summary

Now that DarwinLdDriver is the only derived class of Driver.
This patch merges them and actually removed the class because
they can now just be non-member functions. This change simplifies
a common header, Driver.h.

Diff Detail

Event Timeline

ruiu updated this revision to Diff 49564.Mar 1 2016, 4:21 PM
ruiu retitled this revision from to Merge DarwinLdDriver and Driver..
ruiu updated this object.
ruiu added a reviewer: lhames.
ruiu added a subscriber: llvm-commits.
silvas added a subscriber: silvas.Mar 1 2016, 4:24 PM
silvas added inline comments.
lib/Driver/DarwinLdDriver.cpp
1260

drive-by nit: closing namespace comments

ruiu updated this revision to Diff 49565.Mar 1 2016, 4:26 PM
  • Address Sean's comment
lib/Driver/DarwinLdDriver.cpp
1260

Done.

lhames accepted this revision.Mar 1 2016, 7:48 PM
lhames edited edge metadata.

LGTM.

As a side note: we plan to experiment with new Atom-based formats and drivers in the future, so any assumption that Atoms == MachO should be generally be avoided in refactors. That said, this looks like generically good clean-up.

This revision is now accepted and ready to land.Mar 1 2016, 7:48 PM
ruiu added a subscriber: ruiu.Mar 2 2016, 11:12 AM

Thank you for reviewing!

ruiu closed this revision.Mar 2 2016, 11:12 AM

Submitted as r262502.

lib/Driver/DarwinLdDriver.cpp