From 1617d7a24fc454130215336b986c0607bec374de Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Tue, 23 Jan 2024 13:56:31 +0100 Subject: core: attach types to functions Signed-off-by: Henry Gressmann --- crates/types/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/types/src') diff --git a/crates/types/src/lib.rs b/crates/types/src/lib.rs index 96866d3..87581e1 100644 --- a/crates/types/src/lib.rs +++ b/crates/types/src/lib.rs @@ -42,7 +42,7 @@ pub struct TinyWasmModule { pub start_func: Option, /// The functions of the WebAssembly module. - pub funcs: Box<[WasmFunction]>, + pub funcs: Box<[(u32, WasmFunction)]>, /// The types of the WebAssembly module. pub func_types: Box<[FuncType]>, @@ -355,9 +355,9 @@ impl FuncType { #[derive(Debug, Clone)] pub struct WasmFunction { - pub ty_addr: TypeAddr, pub instructions: Box<[Instruction]>, pub locals: Box<[ValType]>, + pub ty: FuncType, } /// A WebAssembly Module Export -- cgit v1.3.1