diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-09 19:19:19 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-09 19:19:19 -0800 |
commit | b8b815a6cc5f6d43222f623e63f9e665ff460085 (patch) | |
tree | c969ec13bf05ac1ddd7287b3383a6b87c81d63f9 /src/wasm.h | |
parent | 9c6476efe9403658bb69851bfa3aa30f67a32868 (diff) | |
download | binaryen-b8b815a6cc5f6d43222f623e63f9e665ff460085.tar.gz binaryen-b8b815a6cc5f6d43222f623e63f9e665ff460085.tar.bz2 binaryen-b8b815a6cc5f6d43222f623e63f9e665ff460085.zip |
update control flow operators, blacklist some new float errors for now
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/wasm.h b/src/wasm.h index 2a7a9b804..68bee7e5a 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -338,11 +338,12 @@ public: std::ostream& doPrint(std::ostream &o, unsigned indent) { printOpening(o, "loop"); + if (out.is()) { + o << ' ' << out; + assert(in.is()); // if just one is printed, it must be the in + } if (in.is()) { o << ' ' << in; - if (out.is()) { - o << ' ' << out; - } } incIndent(o, indent); printFullLine(o, indent, body); @@ -405,7 +406,7 @@ public: } std::ostream& doPrint(std::ostream &o, unsigned indent) { - printOpening(o, "switch "); + printOpening(o, "tableswitch "); if (name.is()) o << name; incIndent(o, indent); printFullLine(o, indent, value); |