[llvm-nm] Print EC symbol map.
authorJacek Caban <jacek@codeweavers.com>
Fri, 21 Apr 2023 12:31:54 +0000 (15:31 +0300)
committerMartin Storsjö <martin@martin.st>
Fri, 21 Apr 2023 12:46:19 +0000 (15:46 +0300)
commit85a2c50ec4979b87267e4f2068f2921beb0b98f2
tree288c5bbff04b769298c8416022e76a1c0f314170
parenteb56ef3edd9f1d21e625f0158dfc4edc48bd7349
[llvm-nm] Print EC symbol map.

This is useful for examining ARM64EC static libraries and allows
better llvm-lib testing. Changes to Archive class will also be
useful for LLD to support ARM64EC, where it will need to use one
map or the other, depending on linking target (or both, in case of
ARM64X, but separately as they are in different namespaces).

Reviewed By: jhenderson, efriedma

Differential Revision: https://reviews.llvm.org/D146534
llvm/include/llvm/Object/Archive.h
llvm/lib/Object/Archive.cpp
llvm/test/tools/llvm-lib/ecsymbols.test
llvm/test/tools/llvm-nm/ecsymbols.test [new file with mode: 0644]
llvm/tools/llvm-nm/llvm-nm.cpp