[][src]Trait cranelift_codegen::binemit::RelocSink

pub trait RelocSink {
    fn reloc_block(&mut self, _: CodeOffset, _: Reloc, _: CodeOffset);
fn reloc_external(
        &mut self,
        _: CodeOffset,
        _: Reloc,
        _: &ExternalName,
        _: Addend
    );
fn reloc_constant(&mut self, _: CodeOffset, _: Reloc, _: ConstantOffset);
fn reloc_jt(&mut self, _: CodeOffset, _: Reloc, _: JumpTable); }

A trait for receiving relocations for code that is emitted directly into memory.

Required methods

fn reloc_block(&mut self, _: CodeOffset, _: Reloc, _: CodeOffset)

Add a relocation referencing an block at the current offset.

fn reloc_external(
    &mut self,
    _: CodeOffset,
    _: Reloc,
    _: &ExternalName,
    _: Addend
)

Add a relocation referencing an external symbol at the current offset.

fn reloc_constant(&mut self, _: CodeOffset, _: Reloc, _: ConstantOffset)

Add a relocation referencing a constant.

fn reloc_jt(&mut self, _: CodeOffset, _: Reloc, _: JumpTable)

Add a relocation referencing a jump table.

Loading content...

Implementors

impl RelocSink for NullRelocSink[src]

Loading content...