Struct dynasmrt::components::RelocRegistry [−][src]
pub struct RelocRegistry<R: Relocation> { /* fields omitted */ }
Expand description
A registry of relocations and the respective labels they point towards.
Implementations
Create a new, empty relocation registry.
Add a new patch targetting the global label name
.
Add a new patch targetting the dynamic label id
.
Add a new patch targetting the next local label name
.
As any relocation targetting a previous local label can be immediately resolved these should not be recorded.
pub fn take_locals_named<'a>(
&'a mut self,
name: &'static str
) -> impl Iterator<Item = PatchLoc<R>> + 'a
pub fn take_locals_named<'a>(
&'a mut self,
name: &'static str
) -> impl Iterator<Item = PatchLoc<R>> + 'a
Return an iterator through all defined relocations targetting local label name
.
These relocations are removed from the registry.
Return an iterator through all defined relocations targeting global labels and the labels they target. These relocations are removed from the registry.
pub fn take_dynamics<'a>(
&'a mut self
) -> impl Iterator<Item = (PatchLoc<R>, DynamicLabel)> + 'a
pub fn take_dynamics<'a>(
&'a mut self
) -> impl Iterator<Item = (PatchLoc<R>, DynamicLabel)> + 'a
Return an iterator through all defined relocations targeting dynamic labels and the labels they target. These relocations are removed from the registry.
Trait Implementations
Returns the “default value” for a type. Read more