Remove reloc_block

It isn't called and all reloc sinks either ignore it or panic when it is
called.
This commit is contained in:
bjorn3
2020-11-11 12:25:36 +01:00
parent 1dc27c93a4
commit b7a93c2321
14 changed files with 0 additions and 75 deletions

View File

@@ -72,10 +72,6 @@ impl binemit::CodeSink for TextSink {
self.offset += 8;
}
fn reloc_block(&mut self, reloc: binemit::Reloc, block_offset: binemit::CodeOffset) {
write!(self.text, "{}({}) ", reloc, block_offset).unwrap();
}
fn reloc_external(
&mut self,
_srcloc: ir::SourceLoc,

View File

@@ -109,7 +109,6 @@ impl binemit::CodeSink for SizeSink {
self.offset += 8;
}
fn reloc_block(&mut self, _reloc: binemit::Reloc, _block_offset: binemit::CodeOffset) {}
fn reloc_external(
&mut self,
_srcloc: ir::SourceLoc,

View File

@@ -106,7 +106,6 @@ impl binemit::CodeSink for RodataSink {
}
}
fn reloc_block(&mut self, _reloc: binemit::Reloc, _block_offset: binemit::CodeOffset) {}
fn reloc_external(
&mut self,
_: ir::SourceLoc,

View File

@@ -79,7 +79,6 @@ impl CodeSink for TestStackMapsSink {
self.offset += 8;
}
fn reloc_block(&mut self, _: Reloc, _: CodeOffset) {}
fn reloc_external(&mut self, _: SourceLoc, _: Reloc, _: &ExternalName, _: Addend) {}
fn reloc_constant(&mut self, _: Reloc, _: ConstantOffset) {}
fn reloc_jt(&mut self, _: Reloc, _: JumpTable) {}