[PATCH] D61710: lld: Add a warning limit, similar to the existing error limit

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 8 18:15:48 PDT 2019


thakis created this revision.
thakis added a reviewer: ruiu.
Herald added subscribers: MaskRay, aheejin, arichardson, sbc100, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.

At least the COFF and ELF ports can produce arbitrary amounts of warnings (via /force, and via --orphan-handling=warn respectively).

To not produce arbitrary amounts of output by default, stop at 20 warnings by default.

(I'll add tests to this review if there are no concerns about adding this flag.)


https://reviews.llvm.org/D61710

Files:
  lld/COFF/Driver.cpp
  lld/COFF/Options.td
  lld/Common/ErrorHandler.cpp
  lld/ELF/Driver.cpp
  lld/ELF/Options.td
  lld/include/lld/Common/ErrorHandler.h
  lld/lib/Driver/DarwinLdDriver.cpp
  lld/lib/Driver/DarwinLdOptions.td
  lld/test/ELF/linkerscript/orphan-report.s
  lld/wasm/Driver.cpp
  lld/wasm/Options.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61710.198750.patch
Type: text/x-patch
Size: 9735 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190509/1dae8e0e/attachment.bin>


More information about the llvm-commits mailing list