Implement minimal call_indirect signature checking.

This commit is contained in:
Dan Gohman
2018-12-05 07:46:25 -05:00
parent 27c2f82628
commit 57635eb62b
7 changed files with 93 additions and 22 deletions

View File

@@ -152,8 +152,8 @@ fn handle_module(path: PathBuf, target: &Option<String>, output: &str) -> Result
emit_module(&mut obj, &translation.module, &compilation, &relocations)?;
if !translation.module.tables.is_empty() {
if translation.module.tables.len() > 1 {
if !translation.module.table_plans.is_empty() {
if translation.module.table_plans.len() > 1 {
return Err(String::from("multiple tables not supported yet"));
}
return Err(String::from("FIXME: implement tables"));