Skip to main content

update_context_name

Function update_context_name 

Source
pub fn update_context_name<'str>(
    id: ValueId,
    ctx: &mut Context<'str>,
    name: Cow<'str, str>,
    old_name: Option<&str>,
) -> Result<()>
Expand description

Attempts to set the name in the reverse name table that owns id’s kind (function-local for block/instruction/param/Temp, global otherwise).