Skip to content

Commit

Permalink
Merge pull request #3476 from fitzgen/logging-in-cranelift-test-compile
Browse files Browse the repository at this point in the history
cranelift: in `test_compile` filetest, log disasm not clif
  • Loading branch information
fitzgen authored Oct 26, 2021
2 parents 5c34275 + 8aa8dfe commit 49133f6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions cranelift/filetests/src/test_compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,16 @@ impl SubTest for TestCompile {
.compile(isa)
.map_err(|e| crate::pretty_anyhow_error(&comp_ctx.func, e))?;

info!(
"Generated {} bytes of code:\n{}",
total_size,
comp_ctx.func.display()
);

let disasm = comp_ctx
.mach_compile_result
.as_ref()
.unwrap()
.disasm
.as_ref()
.unwrap();

info!("Generated {} bytes of code:\n{}", total_size, disasm);

run_filecheck(&disasm, context)
}
}
Expand Down

0 comments on commit 49133f6

Please sign in to comment.