Skip to content

Commit 4618797

Browse files
gekyOthers
authored andcommitted
Added import logic for tables and memories
Note this is only needed when incrementally compiling, which we don't do because of LTO.
1 parent a0dcf45 commit 4618797

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/wasm.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,12 @@ impl WasmModule {
977977
mutable: global_ty.mutable,
978978
});
979979
}
980-
e => panic!("Have not implemented import section entry type {:?}", e),
980+
ImportSectionEntryType::Memory(memory_ty) => {
981+
self.memories.push(*memory_ty);
982+
}
983+
ImportSectionEntryType::Table(table_ty) => {
984+
self.tables.push(*table_ty);
985+
}
981986
}
982987
ProcessState::ImportSection
983988
}

0 commit comments

Comments
 (0)