[ewasm] Support compiling data subobjects

This commit is contained in:
Alex Beregszaszi
2020-11-09 17:47:12 +00:00
parent e41700e5f7
commit 6e11754c8b
4 changed files with 19 additions and 1 deletions
+5
View File
@@ -44,6 +44,11 @@ string TextTransform::run(wasm::Module const& _module)
" ;; sub-module \"" +
sub.first +
"\" will be encoded as custom section in binary here, but is skipped in text mode.\n";
for (auto const& data: _module.customSections)
ret +=
" ;; custom-section \"" +
data.first +
"\" will be encoded as custom section in binary here, but is skipped in text mode.\n";
for (wasm::FunctionImport const& imp: _module.imports)
{
ret += " (import \"" + imp.module + "\" \"" + imp.externalName + "\" (func $" + imp.internalName;