[llvm-objdump][COFF] Skip empty export entries when dumping the export table
authorAlexandre Ganea <aganea@havenstudios.com>
Thu, 4 May 2023 17:01:13 +0000 (13:01 -0400)
committerAlexandre Ganea <aganea@havenstudios.com>
Thu, 4 May 2023 18:28:59 +0000 (14:28 -0400)
commitcd3180296c10b033f106b34222b3a4a2aaf75d52
tree6d3f3982bb59e933973298cd2019f18a17c97318
parent058f04ea7dcbafbeed271fa75ee65e41409b4479
[llvm-objdump][COFF] Skip empty export entries when dumping the export table

Before this patch, export entries with empy RVA were displayed in the output. In some cases, when the module had exports with sparse ordinals, `llvm-objdump` used to print a lot of `0 0` lines.
We now skip over these empty entries in the output, just as `dumpbin` or binutils `objdump` does.

Differential Revision: https://reviews.llvm.org/D149610
lld/test/COFF/export.test
lld/test/COFF/export32.test
llvm/tools/llvm-objdump/COFFDump.cpp