[llvm-nm] Support the -V option, print that the tool is compatible with GNU nm
authorMartin Storsjö <martin@martin.st>
Tue, 11 May 2021 06:19:52 +0000 (09:19 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 13 May 2021 19:36:25 +0000 (22:36 +0300)
commitb42fb6811e25322f7e55d3f76fe13a6829202219
tree49b36d0f65fd6a74abe5c0f7f273374f04aa98e7
parent7deb5ef44f2865f1b34cff98176a1a723107cf08
[llvm-nm] Support the -V option, print that the tool is compatible with GNU nm

This unlocks some codepaths in libtool.

Differential Revision: https://reviews.llvm.org/D102321
llvm/docs/CommandGuide/llvm-nm.rst
llvm/test/tools/llvm-nm/libtool-version.test [new file with mode: 0644]
llvm/tools/llvm-nm/llvm-nm.cpp