rustc_codegen_llvm::debuginfo::metadata

Function type_di_node

Source
pub(crate) fn type_di_node<'ll, 'tcx>(
    cx: &CodegenCx<'ll, 'tcx>,
    t: Ty<'tcx>,
) -> &'ll DIType
Expand description

Get the debuginfo node for the given type.

This function will look up the debuginfo node in the TypeMap. If it can’t find it, it will create the node by dispatching to the corresponding build_*_di_node() function.