Struct cranelift_module::ModuleReloc
source · pub struct ModuleReloc {
pub offset: CodeOffset,
pub kind: Reloc,
pub name: ModuleRelocTarget,
pub addend: i64,
}Expand description
A module relocation.
Fields§
§offset: CodeOffsetThe offset at which the relocation applies, relative to the containing section.
kind: RelocThe kind of relocation.
name: ModuleRelocTargetThe external symbol / name to which this relocation refers.
addend: i64The addend to add to the symbol value.
Implementations§
source§impl ModuleReloc
impl ModuleReloc
sourcepub fn from_mach_reloc(mach_reloc: &FinalizedMachReloc, func: &Function) -> Self
pub fn from_mach_reloc(mach_reloc: &FinalizedMachReloc, func: &Function) -> Self
Converts a FinalizedMachReloc produced from a Function into a ModuleReloc.
Trait Implementations§
source§impl Clone for ModuleReloc
impl Clone for ModuleReloc
source§fn clone(&self) -> ModuleReloc
fn clone(&self) -> ModuleReloc
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ModuleReloc
impl Send for ModuleReloc
impl Sync for ModuleReloc
impl Unpin for ModuleReloc
impl UnwindSafe for ModuleReloc
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more