From 987003944456c3d04f74c12067ac950feca1a81e Mon Sep 17 00:00:00 2001 From: "Alon Zakai (kripken)" Date: Mon, 10 Jul 2017 11:22:19 -0700 Subject: add the option to seek named breaks, not just taken breaks; refactor headers to make this practical --- src/wasm/wasm-binary.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/wasm/wasm-binary.cpp') diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp index efbd82e8b..2df7f2e26 100644 --- a/src/wasm/wasm-binary.cpp +++ b/src/wasm/wasm-binary.cpp @@ -14,10 +14,11 @@ * limitations under the License. */ -#include "wasm-binary.h" - #include + #include "support/bits.h" +#include "wasm-binary.h" +#include "ast/branch-utils.h" namespace wasm { @@ -544,7 +545,7 @@ void WasmBinaryWriter::recurse(Expression*& curr) { } static bool brokenTo(Block* block) { - return block->name.is() && BreakSeeker::has(block, block->name); + return block->name.is() && BranchUtils::BranchSeeker::has(block, block->name); } void WasmBinaryWriter::visitBlock(Block *curr) { -- cgit v1.2.3