diff options
author | Sam Clegg <sbc@chromium.org> | 2017-01-23 11:18:54 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-23 11:18:54 -0800 |
commit | 5a658b3f2b90cce2bb3d81994828d29b74e41958 (patch) | |
tree | 3c699b33173c95875a7a0a474456b438c02b29f7 /src/binary-reader-interpreter.c | |
parent | a6a3ff9398e06690081d8d41353ad3715ee19e7a (diff) | |
download | wabt-5a658b3f2b90cce2bb3d81994828d29b74e41958.tar.gz wabt-5a658b3f2b90cce2bb3d81994828d29b74e41958.tar.bz2 wabt-5a658b3f2b90cce2bb3d81994828d29b74e41958.zip |
Add function names and relocations to wasmdump disassembly (#285)
Diffstat (limited to 'src/binary-reader-interpreter.c')
-rw-r--r-- | src/binary-reader-interpreter.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/binary-reader-interpreter.c b/src/binary-reader-interpreter.c index 87d260de..af0f46db 100644 --- a/src/binary-reader-interpreter.c +++ b/src/binary-reader-interpreter.c @@ -1131,8 +1131,9 @@ static WasmResult drop_types_for_return(Context* ctx, uint32_t arity) { return WASM_OK; } -static WasmResult begin_function_body(uint32_t index, void* user_data) { - Context* ctx = user_data; +static WasmResult begin_function_body(WasmBinaryReaderContext* context, + uint32_t index) { + Context* ctx = context->user_data; WasmInterpreterFunc* func = get_func_by_module_index(ctx, index); WasmInterpreterFuncSignature* sig = get_signature_by_env_index(ctx, func->sig_index); |