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 98372 llvm/trunk/include/llvm/Object/Wasm.h
llvm/trunk/include/llvm/ObjectYAML/WasmYAML.h
llvm/trunk/include/llvm/Support/Wasm.h
llvm/trunk/lib/Object/WasmObjectFile.cpp
llvm/trunk/lib/ObjectYAML/WasmYAML.cpp
llvm/trunk/test/ObjectYAML/wasm/export_section.yaml
llvm/trunk/test/ObjectYAML/wasm/import_section.yaml
llvm/trunk/tools/obj2yaml/wasm2yaml.cpp
llvm/trunk/tools/yaml2obj/yaml2wasm.cpp
|