From 5a658b3f2b90cce2bb3d81994828d29b74e41958 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Mon, 23 Jan 2017 11:18:54 -0800 Subject: Add function names and relocations to wasmdump disassembly (#285) --- src/binary-reader-interpreter.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/binary-reader-interpreter.c') 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); -- cgit v1.2.3