diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-08-22 14:54:27 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-09-07 09:55:04 -0700 |
commit | 9c1947f84e13dcf79b50e53e6abbf6ce4db6573a (patch) | |
tree | 696852e858a96a5dab49cf5230f7459919424a69 /src | |
parent | 26070505e9885f6bb6dbf8a5039ef537b3c61ba2 (diff) | |
download | binaryen-9c1947f84e13dcf79b50e53e6abbf6ce4db6573a.tar.gz binaryen-9c1947f84e13dcf79b50e53e6abbf6ce4db6573a.tar.bz2 binaryen-9c1947f84e13dcf79b50e53e6abbf6ce4db6573a.zip |
improve full mode printing
Diffstat (limited to 'src')
-rw-r--r-- | src/passes/Print.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index fe125234d..570423efa 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -98,6 +98,9 @@ struct PrintSExpression : public Visitor<PrintSExpression> { while (1) { if (stack.size() > 0) doIndent(o, indent); stack.push_back(curr); + if (full) { + o << "[" << printWasmType(curr->type) << "] "; + } printOpening(o, "block"); if (curr->name.is()) { o << ' '; |