diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-10-30 21:01:12 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-10-30 21:01:12 -0700 |
commit | 2d6a5ed822740a6ac53d1807fe2111bee5098bc6 (patch) | |
tree | a4212e3b42a697a02f6846b2a671e615dac20574 /src/asm2wasm.cpp | |
parent | 6ebb87ce79d6aed56addfc0d275ee4e93d143469 (diff) | |
download | binaryen-2d6a5ed822740a6ac53d1807fe2111bee5098bc6.tar.gz binaryen-2d6a5ed822740a6ac53d1807fe2111bee5098bc6.tar.bz2 binaryen-2d6a5ed822740a6ac53d1807fe2111bee5098bc6.zip |
refactoring
Diffstat (limited to 'src/asm2wasm.cpp')
-rw-r--r-- | src/asm2wasm.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/asm2wasm.cpp b/src/asm2wasm.cpp index bdbef2d78..68717e67e 100644 --- a/src/asm2wasm.cpp +++ b/src/asm2wasm.cpp @@ -1,5 +1,4 @@ -#include "simple_ast.h" #include "wasm.h" #include "optimizer.h" @@ -1028,7 +1027,7 @@ void Asm2WasmBuilder::optimize() { struct BlockRemover : public WasmWalker { BlockRemover() : WasmWalker(nullptr) {} - Expression* walkBlock(Block *curr) override { + Expression* visitBlock(Block *curr) override { if (curr->list.size() != 1) return curr; // just one element; maybe we can return just the element if (curr->name.isNull()) return curr->list[0]; @@ -1042,7 +1041,7 @@ void Asm2WasmBuilder::optimize() { BreakSeeker(IString target) : target(target), found(false) {} - Expression* walkBreak(Break *curr) override { + Expression* visitBreak(Break *curr) override { if (curr->name == target) found++; } }; |