This is an archive of the discontinued LLVM Phabricator instance.

Do not print out removed ICF sections for -verbose.
ClosedPublic

Authored by ruiu on Feb 8 2018, 4:05 PM.

Details

Summary

GNU gold doesn't print out ICF sections for -verbose. It only shows
them for -print-icf-sections. We printed out them for -verbose because
we didn't have -print-icf-sections. Now that we have the option, there's
no reason to print out for -verbose.

Diff Detail

Repository
rLLD LLVM Linker

Event Timeline

ruiu created this revision.Feb 8 2018, 4:05 PM
jhenderson accepted this revision.Feb 9 2018, 4:46 AM
jhenderson added a subscriber: gbreynoo.

LGTM with some nits.

lld/test/ELF/icf-absolute.s
5 ↗(On Diff #133530)

As --print-icf-sections prints to stdout, you can remove the "2>&1" bit of this line.

Same for every other test update, I believe.

lld/test/ELF/icf9.s
5 ↗(On Diff #133530)

Do we need --verbose here still?

14–15 ↗(On Diff #133530)

Very anecdotal this (I haven't looked heavily), and I don't mind this staying the way it is, but it seems more common to do "| \" for line continuations in lit.

This revision is now accepted and ready to land.Feb 9 2018, 4:46 AM
This revision was automatically updated to reflect the committed changes.