Add more llvm verification

This commit is contained in:
Richard Feldman 2020-03-24 06:44:18 -04:00
parent bf129a7299
commit 41b39c0629

View File

@ -288,6 +288,11 @@ mod test_gen {
panic!("Function {} failed LLVM verification.", main_fn_name);
}
// Verify the module
if let Err(errors) = env.module.verify() {
panic!("Errors defining module: {:?}", errors);
}
// Uncomment this to see the module's optimized LLVM instruction output:
// env.module.print_to_stderr();
@ -424,6 +429,11 @@ mod test_gen {
panic!("Function {} failed LLVM verification.", main_fn_name);
}
// Verify the module
if let Err(errors) = env.module.verify() {
panic!("Errors defining module: {:?}", errors);
}
// Uncomment this to see the module's optimized LLVM instruction output:
// env.module.print_to_stderr();