Remove reloc_constant

It is no longer used by the new backends
This commit is contained in:
bjorn3
2021-10-10 14:43:49 +02:00
parent 855ba39217
commit d78f436daf
10 changed files with 2 additions and 89 deletions

View File

@@ -643,16 +643,6 @@ impl binemit::RelocSink for RelocSink {
addend,
});
}
fn reloc_constant(
&mut self,
_code_offset: binemit::CodeOffset,
_reloc: binemit::Reloc,
_constant_offset: ir::ConstantOffset,
) {
// Do nothing for now: cranelift emits constant data after the function code and also emits
// function code with correct relative offsets to the constant data.
}
}
impl RelocSink {
@@ -764,12 +754,4 @@ impl binemit::RelocSink for TrampolineRelocSink {
addend,
});
}
fn reloc_constant(
&mut self,
_code_offset: binemit::CodeOffset,
_reloc: binemit::Reloc,
_constant_offset: ir::ConstantOffset,
) {
panic!("trampoline compilation should not produce constant relocs");
}
}