[llvm-nm] Remove one-dash long options except -arch
authorFangrui Song <i@maskray.me>
Thu, 15 Jul 2021 16:50:37 +0000 (09:50 -0700)
committerFangrui Song <i@maskray.me>
Thu, 15 Jul 2021 16:50:37 +0000 (09:50 -0700)
commit96e9bc42447531a20569e0a680c029837a4868d8
treec890c7d2553f730235e0ea1e7b59ade18c9013b5
parent7299c6f635681aeec250309b1675329fbcb8bb1a
[llvm-nm] Remove one-dash long options except -arch

The documentation and help messages have recommended the double-dash forms for
quite a while. Remove one-dash long options which are not recognized by GNU
style `getopt_long`.

`-arch` is kept as it is in the manpage of classic nm
https://keith.github.io/xcode-man-pages/nm.1.html

Note: the dyldinfo related options don't have a test.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D105948
llvm/test/tools/llvm-nm/X86/posix-aliases.test
llvm/tools/llvm-nm/Opts.td