From fe454f87638716e137216081f7f61bf8407cf916 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Mon, 27 Jul 2020 22:51:23 -0500 Subject: [PATCH] Added import logic for tables and memories Note this is only needed when incrementally compiling, which we don't do because of LTO. --- src/wasm.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/wasm.rs b/src/wasm.rs index 2a7414d6..e20ef5e3 100644 --- a/src/wasm.rs +++ b/src/wasm.rs @@ -977,7 +977,12 @@ impl WasmModule { mutable: global_ty.mutable, }); } - e => panic!("Have not implemented import section entry type {:?}", e), + ImportSectionEntryType::Memory(memory_ty) => { + self.memories.push(*memory_ty); + } + ImportSectionEntryType::Table(table_ty) => { + self.tables.push(*table_ty); + } } ProcessState::ImportSection }