[PATCH] D42375: Add --print-icf flag

Owen Reynolds via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 22 07:31:06 PST 2018


gbreynoo created this revision.
gbreynoo added reviewers: ruiu, rafael.
Herald added a subscriber: emaste.

Currently ICF information is output through stderr if the "--verbose" flag is used. This differs to Gold for example, which uses an explicit flag to output this to stdout. This diff adds the "--print-icf" and "--no-print-icf" flags and changes the output message format for clarity and consistency with "--print-gc-sections". These messages are still output to stderr if using the verbose flag. However to avoid intermingled message output to console, this will not occur when the "--print-icf" flag is used.

Existing tests have been modified to expect the new message format from stderr.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D42375

Files:
  ELF/Config.h
  ELF/Driver.cpp
  ELF/ICF.cpp
  ELF/Options.td
  test/ELF/Inputs/print-icf.s
  test/ELF/icf-absolute.s
  test/ELF/icf-comdat.s
  test/ELF/icf-i386.s
  test/ELF/icf-merge-sec.s
  test/ELF/icf-merge.s
  test/ELF/icf1.s
  test/ELF/icf2.s
  test/ELF/icf3.s
  test/ELF/icf7.s
  test/ELF/icf9.s
  test/ELF/print-icf.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42375.130887.patch
Type: text/x-patch
Size: 10496 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180122/0dbf6805/attachment.bin>


More information about the llvm-commits mailing list