build_pointer_or_reference_di_node in rustc_codegen_llvm::debuginfo::metadata - Rust
Description: Creates debuginfo for built-in pointer-like things:

Skip to main content

## build_pointer_or_reference_di_node

# Function build_pointer_or_reference_di_node

Source

    fn build_pointer_or_reference_di_node<'ll, 'tcx>(
        cx: &GenericCx<'ll, FullCx<'ll, 'tcx>>,
        ptr_type: Ty<'tcx>,
        pointee_type: Ty<'tcx>,
        unique_type_id: UniqueTypeId<'tcx>,
    ) -> DINodeCreationResult<'ll>

Expand description

Creates debuginfo for built-in pointer-like things:

- ty::Ref
- ty::RawPtr
- ty::Adt in the case it’s Box

At some point we might want to remove the special handling of Box and treat it the same as other smart pointers (like Rc, Arc, …).