diff options
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 << ")"; |