diff options
author | Ben Smith <binji@chromium.org> | 2016-04-14 20:58:30 -0700 |
---|---|---|
committer | Ben Smith <binji@chromium.org> | 2016-04-15 00:17:16 -0700 |
commit | 2a18cfc94c7a1db62466554d2b1190e28fd768d3 (patch) | |
tree | 494c067d7b86f932b974ca999fb332910c1f0134 /src/wasm-mark-used-blocks.c | |
parent | fb0f7da9c1ba977aa68f5e01346306ae13b8f59a (diff) | |
download | wabt-2a18cfc94c7a1db62466554d2b1190e28fd768d3.tar.gz wabt-2a18cfc94c7a1db62466554d2b1190e28fd768d3.tar.bz2 wabt-2a18cfc94c7a1db62466554d2b1190e28fd768d3.zip |
rename traverse -> visit
Diffstat (limited to 'src/wasm-mark-used-blocks.c')
-rw-r--r-- | src/wasm-mark-used-blocks.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/wasm-mark-used-blocks.c b/src/wasm-mark-used-blocks.c index 37a887a1..8ebda960 100644 --- a/src/wasm-mark-used-blocks.c +++ b/src/wasm-mark-used-blocks.c @@ -150,16 +150,16 @@ WasmResult wasm_mark_used_blocks(WasmAllocator* allocator, WasmScript* script) { WASM_ZERO_MEMORY(ctx); ctx.allocator = allocator; - WasmExprTraverser traverser; - WASM_ZERO_MEMORY(traverser); - traverser.user_data = &ctx; - traverser.begin_block_expr = &begin_block_expr; - traverser.end_block_expr = &end_block_expr; - traverser.begin_loop_expr = &begin_loop_expr; - traverser.end_loop_expr = &end_loop_expr; - traverser.begin_br_expr = &begin_br_expr; - traverser.begin_br_if_expr = &begin_br_if_expr; - traverser.begin_br_table_expr = &begin_br_table_expr; + WasmExprVisitor visitor; + WASM_ZERO_MEMORY(visitor); + visitor.user_data = &ctx; + visitor.begin_block_expr = &begin_block_expr; + visitor.end_block_expr = &end_block_expr; + visitor.begin_loop_expr = &begin_loop_expr; + visitor.end_loop_expr = &end_loop_expr; + visitor.begin_br_expr = &begin_br_expr; + visitor.begin_br_if_expr = &begin_br_if_expr; + visitor.begin_br_table_expr = &begin_br_table_expr; size_t i; for (i = 0; i < script->commands.size; ++i) { @@ -171,7 +171,7 @@ WasmResult wasm_mark_used_blocks(WasmAllocator* allocator, WasmScript* script) { for (j = 0; j < module->funcs.size; ++j) { WasmFunc* func = module->funcs.data[j]; ctx.current_func = func; - CHECK_RESULT(wasm_traverse_func(func, &traverser)); + CHECK_RESULT(wasm_visit_func(func, &visitor)); ctx.current_func = NULL; } } |