summaryrefslogtreecommitdiff
path: root/src/wasm-binary-reader-ast.c
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2016-04-11 11:32:52 -0700
committerBen Smith <binji@chromium.org>2016-04-15 00:17:16 -0700
commitdbfd60b099753b34139bd99af0201cbc0da96be7 (patch)
tree77f96eb69fa5850273e2686fe5636190fc85abcf /src/wasm-binary-reader-ast.c
parent2a18cfc94c7a1db62466554d2b1190e28fd768d3 (diff)
downloadwabt-dbfd60b099753b34139bd99af0201cbc0da96be7.tar.gz
wabt-dbfd60b099753b34139bd99af0201cbc0da96be7.tar.bz2
wabt-dbfd60b099753b34139bd99af0201cbc0da96be7.zip
generate names for unnamed AST nodes
Also add flag to run-roundtrip, writing wast output to stdout (useful for testing)
Diffstat (limited to 'src/wasm-binary-reader-ast.c')
-rw-r--r--src/wasm-binary-reader-ast.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/wasm-binary-reader-ast.c b/src/wasm-binary-reader-ast.c
index 3e37f81e..f0e6abae 100644
--- a/src/wasm-binary-reader-ast.c
+++ b/src/wasm-binary-reader-ast.c
@@ -1017,8 +1017,6 @@ static WasmResult on_function_name(uint32_t index,
WasmFunc* func = ctx->module->funcs.data[index];
func->name = dup_name;
- /* TODO(binji): We could update the call expressions to use the function name
- * instead of the index */
return WASM_OK;
}
@@ -1064,8 +1062,6 @@ static WasmResult on_local_name(uint32_t func_index,
binding = wasm_insert_binding(ctx->allocator, bindings, &dup_name);
CHECK_ALLOC_NULL(ctx, binding);
binding->index = index;
- /* TODO(binji): We could update the get_local/set_local expressions to use
- * the name instead of the index */
return WASM_OK;
}