[lld-macho] Specify the complete set of command-line options for ld64
authorGreg McGary <gkm@fb.com>
Mon, 15 Jun 2020 19:36:32 +0000 (12:36 -0700)
committerShoaib Meenai <smeenai@fb.com>
Mon, 15 Jun 2020 19:50:20 +0000 (12:50 -0700)
commit7df80e3f23bd6cd7512e8a38ef5db968bad207d6
treedb6126404e0ca85dc5d3c97e40ddaefaf5931c0a
parent35651fdd4537c081ca47acde58b6fd4b5f6997b3
[lld-macho] Specify the complete set of command-line options for ld64

This is a complete Options.td compiled from ld(1) dated 2018-03-07 and
cross checked with ld64 source code version 512.4 dated 2018-03-18.

This is the first in a series of diffs for argument handling. Follow-ups
will include switch cases for all the new instances of `OPT_foo`, and
parsing/validation of arguments attached to options, e.g., more code
akin to `OPT_platform_version` and associated `parsePlatformVersion()`.

Reviewed By: smeenai

Differential Revision: https://reviews.llvm.org/D80582
lld/MachO/Driver.cpp
lld/MachO/Driver.h
lld/MachO/Options.td
lld/test/MachO/platform-version.test
llvm/include/llvm/Option/Option.h