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 98324 include/llvm/Object/Wasm.h
lib/Object/WasmObjectFile.cpp
|
I'm surprised there's not some method for this purpose on ObjectFile... but I don't see one...