[WebAssembly] Improve readobj and nm support for wasm
authorSam Clegg <sbc@chromium.org>
Fri, 14 Apr 2017 19:50:44 +0000 (19:50 +0000)
committerSam Clegg <sbc@chromium.org>
Fri, 14 Apr 2017 19:50:44 +0000 (19:50 +0000)
commit135a4b8ea1cdba8b7ee28782be21e7c172700d43
tree3c10e7340111cde2533e72de036d742150904174
parent7cfe41659c15c911129e2229b8ab460886886bf0
[WebAssembly] Improve readobj and nm support for wasm

Now that the libObect support for wasm is better we can
have readobj and nm produce more useful output too.

Differential Revision: https://reviews.llvm.org/D31514

llvm-svn: 300365
llvm/include/llvm/Object/Wasm.h
llvm/test/tools/llvm-nm/lit.local.cfg
llvm/test/tools/llvm-nm/wasm/exports.yaml [new file with mode: 0644]
llvm/test/tools/llvm-nm/wasm/imports.yaml [new file with mode: 0644]
llvm/test/tools/llvm-readobj/Inputs/trivial.obj.wasm
llvm/test/tools/llvm-readobj/file-headers.test
llvm/test/tools/llvm-readobj/relocations.test
llvm/test/tools/llvm-readobj/sections.test
llvm/test/tools/llvm-readobj/symbols.test
llvm/tools/llvm-nm/llvm-nm.cpp
llvm/tools/llvm-readobj/WasmDumper.cpp