[PATCH] D149610: [llvm-objdump][COFF] Skip empty entries when dumping the export table

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 1 12:46:28 PDT 2023


mstorsjo added inline comments.


================
Comment at: lld/test/COFF/export32.test:83
 # CHECK7:      Ordinal      RVA  Name
-# CHECK7-NEXT:       1        0
+# CHECK7-NEXT:       1   0x1010  exportfn3
 # CHECK7-NEXT:       2   0x1010  foo
----------------
This change doesn't seem consistent and/or directly explainable by the change itself?


================
Comment at: llvm/tools/llvm-objdump/COFFDump.cpp:569
     } else {
-      outs() << format("    % 4d %# 8x", Ordinal, RVA);
+      outs() << format("   %5d %# 8x", Ordinal, RVA);
     }
----------------
This part of the change also seems a bit unrelated to the main change. If you want it bundled here, make sure to at least mention/explain it in the commit message.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149610/new/

https://reviews.llvm.org/D149610



More information about the llvm-commits mailing list