[lld/mac] Port typo correction for undefined symbols from ELF port
authorNico Weber <thakis@chromium.org>
Sun, 2 Oct 2022 15:04:31 +0000 (11:04 -0400)
committerNico Weber <thakis@chromium.org>
Mon, 3 Oct 2022 22:53:55 +0000 (18:53 -0400)
commit8c45e80298f4e3eb6d9cfbafcb099bc087e4668e
tree69203bc941e5e1c022bdddef65b8da69a4134f74
parentd55dd57124d5b22a85c09574ccf2fa0a9e8c44db
[lld/mac] Port typo correction for undefined symbols from ELF port

Ports:
- core feature: https://reviews.llvm.org/D67039
- case mismatch: https://reviews.llvm.org/D70506
- extern "C" suggestions: https://reviews.llvm.org/D69592,
  https://reviews.llvm.org/D69650

Does not port https://reviews.llvm.org/D71735 since I believe that that doesn't
apply to lld/Mach-O.

Differential Revision: https://reviews.llvm.org/D135038
lld/MachO/SymbolTable.cpp
lld/test/MachO/undef-spell-corrector.s [new file with mode: 0644]
lld/test/MachO/undef-suggest-extern-c.s [new file with mode: 0644]
lld/test/MachO/undef-suggest-extern-c2.s [new file with mode: 0644]