Wire up llvm code generated traps to the new runtime trap handler function.

This commit is contained in:
Nick Lewycky
2020-05-05 13:41:44 -07:00
parent e43b50a810
commit fbeedbd3ac
2 changed files with 22 additions and 7 deletions

View File

@ -213,6 +213,7 @@ impl FuncTranslator {
// TODO: use phf?
let mut libcalls = HashMap::new();
libcalls.insert("vm.exception.trap".to_string(), LibCall::RaiseTrap);
libcalls.insert("truncf".to_string(), LibCall::TruncF32);
libcalls.insert("trunc".to_string(), LibCall::TruncF64);
libcalls.insert("ceilf".to_string(), LibCall::CeilF32);