Previously we had only supported reading/writing certain
types of imports and exports (functions and global).
Also add usefull overload of getWasmSymbol() and
getNumberOfSymbols() in support of lld port.
Paths
| Differential D33011
[WebAssembly] Improve libObject support for reading/writing wasm imports and exports ClosedPublic Authored by sbc100 on May 9 2017, 11:10 AM.
Details Summary Previously we had only supported reading/writing certain Also add usefull overload of getWasmSymbol() and
Diff Detail
Event TimelineHerald added subscribers: jgravelle-google, dschuff, jfb. · View Herald TranscriptMay 9 2017, 11:10 AM dschuff added inline comments. This revision is now accepted and ready to land.May 9 2017, 12:41 PM sbc100 retitled this revision from [WebAssembly] Handle parsing of exported memories to [WebAssembly] Add support for importing and exporting of different types.May 9 2017, 2:59 PM sbc100 added inline comments.
Comment Actions Cool, looks good. Maybe just clarify in the commit description that this really just applies to reading and writing the sections rather than e.g. codegen. sbc100 retitled this revision from [WebAssembly] Add support for importing and exporting of different types to [WebAssembly] Improve support to libObject for reading/writing wasm imports and exports.May 9 2017, 4:51 PM sbc100 retitled this revision from [WebAssembly] Improve support to libObject for reading/writing wasm imports and exports to [WebAssembly] Improve libObject support for reading/writing wasm imports and exports. Closed by commit rL302601: [WebAssembly] Improve libObject support for wasm imports and exports (authored by sbc). · Explain WhyMay 9 2017, 5:02 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 98355 include/llvm/Object/Wasm.h
include/llvm/ObjectYAML/WasmYAML.h
include/llvm/Support/Wasm.h
lib/Object/WasmObjectFile.cpp
lib/ObjectYAML/WasmYAML.cpp
test/ObjectYAML/wasm/export_section.yaml
test/ObjectYAML/wasm/import_section.yaml
tools/obj2yaml/wasm2yaml.cpp
tools/yaml2obj/yaml2wasm.cpp
|
I'm surprised there's not some method for this purpose on ObjectFile... but I don't see one...