Function rustc_trans::trans::base::update_linkageExperimental [-]  [+] [src]

pub fn update_linkage(ccx: &CrateContext, llval: ValueRef, id: Option<NodeId>, llval_origin: ValueOrigin)

Set the appropriate linkage for an LLVM ValueRef (function or global). If the llval is the direct translation of a specific Rust item, id should be set to the NodeId of that item. (This mapping should be 1-to-1, so monomorphizations and drop/visit glue should have id set to None.) llval_origin indicates whether llval is the translation of an item assigned to ccx's compilation unit or an inlined copy of an item assigned to a different compilation unit.