[PATCH] D106897: [lld][WebAssembly] Prefer objdump -d over obj2yaml for tests. NFC

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 27 12:06:15 PDT 2021


sbc100 added a comment.

In D106897#2908076 <https://reviews.llvm.org/D106897#2908076>, @dschuff wrote:

> I guess depending on what the test is looking for, objdump might also be able to replace obj2yaml for non-code-section stuff too. At least data section maybe?

I think other sections are less readable with objdump. e.g.:

  $ llvm-objdump -s ...
  ....
  Contents of section DATA:
   0000 01004180 080b1003 00000004 0000002a  ..A............*
   0010 0000002b 000000    

The problem here is that the section header is also displayed not just the actual data, so its less clear I think.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D106897



More information about the llvm-commits mailing list