diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-09-28 13:10:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-28 13:10:59 -0700 |
commit | 2da1b20451a744daa613e818f71e8f52de3a818e (patch) | |
tree | 62632269da091888b428b003c0ae703aa27ee2b3 /src/passes/Print.cpp | |
parent | ef22ce6c360b70b5bfad40b2930c481d48ed9780 (diff) | |
download | binaryen-2da1b20451a744daa613e818f71e8f52de3a818e.tar.gz binaryen-2da1b20451a744daa613e818f71e8f52de3a818e.tar.bz2 binaryen-2da1b20451a744daa613e818f71e8f52de3a818e.zip |
Type check block/loop/if sigs (#717)
* type check using block/loop/if types provided in text and binary formats.
* print if and loop sigs which were missing.
* remove dsl from OptimizeInstructions as after those changes it needs rethinking.
Diffstat (limited to 'src/passes/Print.cpp')
-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 69dc447a8..c3ca4021e 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -140,6 +140,9 @@ struct PrintSExpression : public Visitor<PrintSExpression> { } void visitIf(If *curr) { printOpening(o, "if"); + if (isConcreteWasmType(curr->type)) { + o << ' ' << printWasmType(curr->type); + } incIndent(); printFullLine(curr->condition); // ifTrue and False have implict blocks, avoid printing them if possible |