diff options
author | Ben Smith <binji@chromium.org> | 2016-04-11 11:32:52 -0700 |
---|---|---|
committer | Ben Smith <binji@chromium.org> | 2016-04-15 00:17:16 -0700 |
commit | dbfd60b099753b34139bd99af0201cbc0da96be7 (patch) | |
tree | 77f96eb69fa5850273e2686fe5636190fc85abcf /src/wasm-binary-reader-ast.c | |
parent | 2a18cfc94c7a1db62466554d2b1190e28fd768d3 (diff) | |
download | wabt-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.c | 4 |
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; } |