Skip to content

Commit

Permalink
Added import logic for tables and memories
Browse files Browse the repository at this point in the history
Note this is only needed when incrementally compiling, which we don't do
because of LTO.
  • Loading branch information
geky committed Jul 28, 2020
1 parent fc2bbe5 commit fe454f8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit fe454f8

Please sign in to comment.