Include ISA-specific information in verifier errors.

When the test driver reports a verifier error, make sure to include the
TargetIsa when printing the failing function.
This commit is contained in:
Jakob Stoklund Olesen
2017-07-12 09:59:00 -07:00
parent 24b53efc9d
commit 71af555e6f
6 changed files with 14 additions and 10 deletions

View File

@@ -41,7 +41,7 @@ impl SubTest for TestLICM {
comp_ctx.flowgraph();
comp_ctx
.licm()
.map_err(|e| pretty_error(&comp_ctx.func, e))?;
.map_err(|e| pretty_error(&comp_ctx.func, context.isa, e))?;
let mut text = String::new();
write!(&mut text, "{}", &comp_ctx.func)