There are two WasmSignature structs, one in
include/llvm/BinaryFormat/Wasm.h and the other in
lib/MC/WasmObjectWriter.cpp. I don't know why they got separated in this
way in the first place, but it seems we can unify them to use the one in
Wasm.h for all cases.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I think this is probably just historical. llvm/Object/WasmTraits.h is relatively new I think. My original plan was to keep the public interface to llvm/Object/ very dumb without any classes or methods, but I think it has evolved into something a little more rich now.
Comment Actions
LGTM too; I think I created wasm::WasmSignature in service of some other purpose (https://reviews.llvm.org/D52580) and never got around to finishing the job of removing this code...