[LLD][MinGW] Add --error-limit=<N> option
authorAlvin Wong <alvin@alvinhc.com>
Thu, 10 Nov 2022 11:32:07 +0000 (13:32 +0200)
committerMartin Storsjö <martin@martin.st>
Thu, 10 Nov 2022 11:52:47 +0000 (13:52 +0200)
commitde4364f1ecaa6a5d631cff036b8f31e02841e73d
treee7355d51dd6ed6e21ea8e61a3d897b4ea3fa82eb
parentd5fb5960d0df23509a501cfa5a133927bb266d4d
[LLD][MinGW] Add --error-limit=<N> option

This maps to -errorlimit:<N> in the COFF linker and is functionally
identical to the same option in the ELF and MachO linker.

Reviewed By: mstorsjo

Differential Revision: https://reviews.llvm.org/D137489
lld/COFF/Driver.cpp
lld/MinGW/Driver.cpp
lld/MinGW/Options.td
lld/test/COFF/error-limit.test
lld/test/MinGW/error-limit.test [new file with mode: 0644]