Re-exportsยง
use std::borrow::Cow;๐use rustc_abi::FieldIdx;๐use rustc_abi::TagEncoding;๐use rustc_abi::VariantIdx;๐use rustc_abi::Variants;๐use rustc_codegen_ssa::debuginfo::type_names::compute_debuginfo_type_name;๐use rustc_codegen_ssa::debuginfo::type_names::cpp_like_debuginfo;๐use rustc_codegen_ssa::debuginfo::tag_base_type;๐use rustc_codegen_ssa::debuginfo::wants_c_like_enum_debuginfo;๐use rustc_codegen_ssa::traits::MiscCodegenMethods;๐use rustc_hir::def::CtorKind;๐use rustc_index::IndexSlice;๐use rustc_middle::mir::CoroutineLayout;๐use rustc_middle::ty::layout::LayoutOf;๐use rustc_middle::ty::layout::TyAndLayout;๐use rustc_middle::ty;๐use rustc_middle::ty::AdtDef;๐use rustc_middle::ty::CoroutineArgs;๐use rustc_middle::ty::CoroutineArgsExt;๐use rustc_middle::ty::Ty;๐use rustc_middle::ty::VariantDef;๐use rustc_span::Span;๐use rustc_span::Symbol;๐use rustc_span::bug;๐use super::type_map::DINodeCreationResult;๐use super::type_map::UniqueTypeId;๐use super::SmallVec;๐use super::size_and_align_of;๐use crate::common::CodegenCx;๐use crate::debuginfo::metadata::type_map;๐use crate::debuginfo::metadata::type_map::Stub;๐use crate::debuginfo::metadata::UNKNOWN_LINE_NUMBER;๐use crate::debuginfo::metadata::build_field_di_node;๐use crate::debuginfo::metadata::build_generic_type_param_di_nodes;๐use crate::debuginfo::metadata::file_metadata_from_def_id;๐use crate::debuginfo::metadata::type_di_node;๐use crate::debuginfo::metadata::unknown_file_metadata;๐use crate::debuginfo::utils::DIB;๐use crate::debuginfo::utils::create_DIArray;๐use crate::debuginfo::utils::get_namespace_for_item;๐use crate::llvm::debuginfo::DIFlags;๐use crate::llvm::debuginfo::DIType;๐use crate::llvm;๐use crate::llvm::ToLlvmBool;๐
Modulesยง
Enumsยง
- Discr
Result ๐
Functionsยง
- build_
c_ ๐style_ enum_ di_ node - Build the debuginfo node for a C-style enum, i.e. an enum the variants of which have no fields.
- build_
coroutine_ ๐di_ node - build_
coroutine_ ๐variant_ struct_ type_ di_ node - Build the struct type for describing a single coroutine state. See build_coroutine_variant_struct_type_di_node.
- build_
enum_ ๐type_ di_ node - build_
enum_ ๐variant_ struct_ type_ di_ node - Build the debuginfo node for the struct type describing a single variant of an enum.
- build_
enumeration_ ๐type_ di_ node - 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.
- compute_
discriminant_ ๐value - Returns the discriminant value corresponding to the variant index.