diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-04-08 18:47:17 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-04-08 21:27:26 -0700 |
commit | 8efc401621d1794c057bfb43345b6ac4d615b2e0 (patch) | |
tree | 85ef9aa857a0a7bb17873ab55bfc01c63c526519 /src/wasm.h | |
parent | f046fa3a19252e2dc301a82e7f699aec4dc2eb43 (diff) | |
download | binaryen-8efc401621d1794c057bfb43345b6ac4d615b2e0.tar.gz binaryen-8efc401621d1794c057bfb43345b6ac4d615b2e0.tar.bz2 binaryen-8efc401621d1794c057bfb43345b6ac4d615b2e0.zip |
AST Builder class, and use it to optimzie umoddi4 in asm2wasm
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wasm.h b/src/wasm.h index 2fa117b91..a064a3431 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -975,10 +975,9 @@ public: UnaryOp op; Expression *value; - // the type is always the type of the operands, - // except for relationals - bool isRelational() { return op == EqZ; } + + // no finalize since some opcodes have more than one type, so user must set it anyhow }; class Binary : public Expression { |