[lld/mac] Implement basic typo correction for flags
authorNico Weber <thakis@chromium.org>
Mon, 23 Nov 2020 15:51:56 +0000 (10:51 -0500)
committerNico Weber <thakis@chromium.org>
Tue, 24 Nov 2020 16:33:39 +0000 (11:33 -0500)
commit11b76258331659daa57e15fe86c1f1234267a78d
treea81d7852243ccfe2e629839ed64596ccb135ef74
parentb86a1cd2f8540b311b5b921235e612fea4134dff
[lld/mac] Implement basic typo correction for flags

Also use "unknown flag 'flag'" instead of "unknown flag: flag" for
consistency with the other ports.

Differential Revision: https://reviews.llvm.org/D91970
lld/COFF/DriverUtils.cpp
lld/ELF/DriverUtils.cpp
lld/MachO/DriverUtils.cpp
lld/test/MachO/color-diagnostics.test
lld/test/MachO/driver.test [new file with mode: 0644]
lld/test/MachO/silent-ignore.test