summaryrefslogtreecommitdiff
path: root/crates/types
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2024-01-23 13:56:31 +0100
committerHenry Gressmann <mail@henrygressmann.de>2024-01-23 13:56:31 +0100
commit1617d7a24fc454130215336b986c0607bec374de (patch)
treeef083f17c0dae8b9e8c50381783e736506e835cf /crates/types
parent5d7f3bca95afb465b12b699df031b3f6139982da (diff)
core: attach types to functions
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/types')
-rw-r--r--crates/types/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
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<FuncAddr>,
/// 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