rustc_codegen_llvm::debuginfo::metadata

Function build_global_var_di_node

source
pub(crate) fn build_global_var_di_node<'ll>(
    cx: &CodegenCx<'ll, '_>,
    def_id: DefId,
    global: &'ll Value,
)
Expand description

Creates debug information for the given global variable.

Adds the created debuginfo nodes directly to the crate’s IR.