Remove trap from CodeSink

And introduce MachBufferFinalized::traps() in the place.
This commit is contained in:
bjorn3
2022-01-11 16:42:52 +01:00
parent 38aaa6e1da
commit 63e2360346
6 changed files with 25 additions and 35 deletions

View File

@@ -93,7 +93,6 @@ impl binemit::CodeSink for SizeSink {
_addend: binemit::Addend,
) {
}
fn trap(&mut self, _code: ir::TrapCode, _srcloc: ir::SourceLoc) {}
}
fn check_precise_output(text: &str, context: &Context) -> Result<()> {