Trait cranelift_codegen::binemit::RelocSink
source · pub trait RelocSink {
fn reloc_ebb(&mut self, _: CodeOffset, _: Reloc, _: CodeOffset);
fn reloc_external(
&mut self,
_: CodeOffset,
_: Reloc,
_: &ExternalName,
_: Addend
);
fn reloc_jt(&mut self, _: CodeOffset, _: Reloc, _: JumpTable);
}
Expand description
A trait for receiving relocations for code that is emitted directly into memory.
Required Methods§
sourcefn reloc_ebb(&mut self, _: CodeOffset, _: Reloc, _: CodeOffset)
fn reloc_ebb(&mut self, _: CodeOffset, _: Reloc, _: CodeOffset)
Add a relocation referencing an EBB at the current offset.
sourcefn reloc_external(&mut self, _: CodeOffset, _: Reloc, _: &ExternalName, _: Addend)
fn reloc_external(&mut self, _: CodeOffset, _: Reloc, _: &ExternalName, _: Addend)
Add a relocation referencing an external symbol at the current offset.
sourcefn reloc_jt(&mut self, _: CodeOffset, _: Reloc, _: JumpTable)
fn reloc_jt(&mut self, _: CodeOffset, _: Reloc, _: JumpTable)
Add a relocation referencing a jump table.