This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objdump][Wasm][NFC] Create WasmDump.h
ClosedPublic

Authored by hubert.reinterpretcast on Apr 12 2020, 7:45 PM.

Details

Summary

Continuing from D77285, the external interfaces implemented by WasmDump.cpp are now declared in WasmDump.h and moved into the llvm::objdump namespace.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2020, 7:45 PM
MaskRay added inline comments.Apr 12 2020, 11:26 PM
llvm/tools/llvm-objdump/WasmDump.h
2

Add a brief comment for WasmDump.h?

  • Add description to WasmDump.h; matches WasmDump.cpp
hubert.reinterpretcast marked 2 inline comments as done.Apr 13 2020, 8:53 AM
hubert.reinterpretcast added inline comments.
llvm/tools/llvm-objdump/WasmDump.h
2

Done.

MaskRay accepted this revision.Apr 13 2020, 9:31 AM

LGTM.

llvm/tools/llvm-objdump/WasmDump.h
20

This is very nitpicking... WasmObjectFile inherits from ObjectFile so I would declare ObjectFile first.

This revision is now accepted and ready to land.Apr 13 2020, 9:31 AM
hubert.reinterpretcast marked 2 inline comments as done.Apr 13 2020, 9:55 AM
hubert.reinterpretcast added inline comments.
llvm/tools/llvm-objdump/WasmDump.h
20

I'm not sure I would do the same. The WasmObjectFile could be seen as being in block of "Wasm" related types (albeit with only one member currently).

This revision was automatically updated to reflect the committed changes.