fn build_pointer_or_reference_di_node<'ll, 'tcx>(
    cx: &CodegenCx<'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, …).