Remove reloc_constant
It is no longer used by the new backends
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user