build_union_fields_for_direct_tag_enum_or_coroutine in rustc_codegen_llvm::debuginfo::metadata::enums::cpp_like - Rust
Description: This is a helper function shared between enums and coroutines that makes sure fields have the expect names.

Skip to main content

## build_union_fields_for_direct_tag_enum_or_coroutine

# Function build_union_fields_for_direct_tag_enum_or_coroutine

Source

    fn build_union_fields_for_direct_tag_enum_or_coroutine<'ll, 'tcx>(
        cx: &GenericCx<'ll, FullCx<'ll, 'tcx>>,
        enum_type_and_layout: TyAndLayout<'tcx>,
        enum_type_di_node: &'ll Metadata,
        variant_field_infos: &[VariantFieldInfo<'ll>],
        discr_type_di_node: &'ll Metadata,
        tag_base_type: Ty<'tcx>,
        tag_field: FieldIdx,
        untagged_variant_index: Option<VariantIdx>,
        di_flags: DIFlags,
    ) -> SmallVec<[&'ll Metadata; 16]>

Expand description

This is a helper function shared between enums and coroutines that makes sure fields have the expect names.