fn build_enumeration_type_di_node<'ll, 'tcx>(
    cx: &CodegenCx<'ll, 'tcx>,
    type_name: &str,
    base_type: Ty<'tcx>,
    variants: &mut dyn Iterator<Item = (Discr<'tcx>, Cow<'tcx, str>)>,
    containing_scope: &'ll DIType
) -> &'ll DIType
Expand description

Build a DW_TAG_enumeration_type debuginfo node, with the given base type and variants. This is a helper function and does not register anything in the type map by itself.

variants is an iterator of (discr-value, variant-name).