diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-03-15 20:44:05 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-03-15 20:44:05 -0700 |
commit | d588ecdea2b423bc4de22580f20b0647c4100399 (patch) | |
tree | a6a9daeefe0136a81064b95076cfeaccccdb9989 /src/passes/Print.cpp | |
parent | f156316aebdba6a26eb6cddcef1034612f32e087 (diff) | |
parent | e266b793ec120daf77ae2d40407b04d98ba45984 (diff) | |
download | binaryen-d588ecdea2b423bc4de22580f20b0647c4100399.tar.gz binaryen-d588ecdea2b423bc4de22580f20b0647c4100399.tar.bz2 binaryen-d588ecdea2b423bc4de22580f20b0647c4100399.zip |
Merge pull request #246 from WebAssembly/spec-binary
Binary spec stuff
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 << ")"; |