From dbfd60b099753b34139bd99af0201cbc0da96be7 Mon Sep 17 00:00:00 2001 From: Ben Smith Date: Mon, 11 Apr 2016 11:32:52 -0700 Subject: generate names for unnamed AST nodes Also add flag to run-roundtrip, writing wast output to stdout (useful for testing) --- src/wasm-binary-reader-ast.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/wasm-binary-reader-ast.c') 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; } -- cgit v1.2.3