diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-03-15 17:26:54 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-03-15 17:26:54 -0700 |
commit | a0156dbc900c642dd9f1b8f44ab13c06ff2e8fb9 (patch) | |
tree | 361ccaaafc58b632e22927a34b729763b06bb333 /src/passes/Print.cpp | |
parent | c68e1ebb0c63f427400230cd71e46dd7629b735f (diff) | |
download | binaryen-a0156dbc900c642dd9f1b8f44ab13c06ff2e8fb9.tar.gz binaryen-a0156dbc900c642dd9f1b8f44ab13c06ff2e8fb9.tar.bz2 binaryen-a0156dbc900c642dd9f1b8f44ab13c06ff2e8fb9.zip |
add explicit memory export support
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 2a940359f..e3663e164 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -483,6 +483,12 @@ struct PrintSExpression : public WasmVisitor<PrintSExpression, void> { } o << ((curr->memory.segments.size() > 0 && !minify) ? "\n " : "") << ")"; o << maybeNewLine; + if (curr->memory.exportName.is()) { + doIndent(o, indent); + printOpening(o, "export "); + printText(o, curr->memory.exportName.str) << " memory)"; + o << maybeNewLine; + } if (curr->start.is()) { doIndent(o, indent); printOpening(o, "start") << " " << curr->start << ")"; |