Re-exportsΒ§
use std::borrow::Cow;πuse std::fmt;πuse std::fmt::Write;πuse std::hash::Hash;πuse std::hash::Hash;πuse std::hash::Hasher;πuse std::path::PathBuf;πuse std::assert_matches;πuse std::iter;πuse std::ptr;πuse libc::c_longlong;πuse libc::c_uint;πuse rustc_abi::Align;πuse rustc_abi::Endian;πuse rustc_abi::Layout;πuse rustc_abi::NumScalableVectors;πuse rustc_abi::Size;πuse rustc_ast::IntTy;πuse rustc_ast::UintTy;πuse rustc_codegen_ssa::debuginfo::type_names::VTableNameKind;πuse rustc_codegen_ssa::debuginfo::type_names::cpp_like_debuginfo;πuse rustc_hir::def::CtorKind;πuse rustc_hir::def::DefKind;πuse rustc_hir::def_id::DefId;πuse rustc_hir::def_id::LOCAL_CRATE;πuse rustc_middle::ty::layout::HasTypingEnv;πuse rustc_middle::ty::layout::LayoutOf;πuse rustc_middle::ty::layout::TyAndLayout;πuse rustc_middle::ty::layout::WIDE_PTR_ADDR;πuse rustc_middle::ty::layout::WIDE_PTR_EXTRA;πuse rustc_middle::ty;πuse rustc_middle::ty::AdtDef;πuse rustc_middle::ty::AdtKind;πuse rustc_middle::ty::ExistentialTraitRef;πuse rustc_middle::ty::Instance;πuse rustc_middle::ty::Ty;πuse rustc_middle::ty::TyCtxt;πuse rustc_middle::ty::Unnormalized;πuse rustc_middle::ty::Visibility;πuse rustc_session::config;πuse rustc_session::config::DebugInfo;πuse rustc_session::config::Lto;πuse rustc_span::DUMMY_SP;πuse rustc_span::FileName;πuse rustc_span::RemapPathScopeComponents;πuse rustc_span::SourceFile;πuse rustc_span::Span;πuse rustc_span::Symbol;πuse rustc_span::bug;πuse rustc_span::hygiene;πuse rustc_symbol_mangling::typeid_for_trait_ref;πuse rustc_target::spec::Arch;πuse rustc_target::spec::DebuginfoKind;πuse rustc_target::spec::HasTargetSpec;πuse smallvec::smallvec;πuse tracing::debug;πuse tracing::instrument;πuse tracing::instrument;πpub(crate) use self::type_map::TypeMap;πuse self::type_map::DINodeCreationResult;πuse self::type_map::Stub;πuse self::type_map::UniqueTypeId;πuse super::CodegenUnitDebugContext;πuse super::namespace::mangled_name_of_instance;πuse super::type_names::compute_debuginfo_type_name;πuse super::type_names::compute_debuginfo_vtable_name;πuse super::utils::DIB;πuse super::utils::debug_context;πuse super::utils::get_namespace_for_item;πuse super::utils::is_node_local_to_unit;πuse crate::common::CodegenCx;πuse crate::debuginfo::metadata::type_map::build_type_with_children;πuse crate::debuginfo::utils::WidePtrKind;πuse crate::debuginfo::utils::create_DIArray;πuse crate::debuginfo::utils::wide_pointer_kind;πuse crate::debuginfo::DIBuilderExt;πuse crate::debuginfo::dwarf_const;πuse crate::llvm::debuginfo::DIBasicType;πuse crate::llvm::debuginfo::DIBuilder;πuse crate::llvm::debuginfo::DICompositeType;πuse crate::llvm::debuginfo::DIDescriptor;πuse crate::llvm::debuginfo::DIFile;πuse crate::llvm::debuginfo::DIFlags;πuse crate::llvm::debuginfo::DILexicalBlock;πuse crate::llvm::debuginfo::DIScope;πuse crate::llvm::debuginfo::DIType;πuse crate::llvm::debuginfo::DebugEmissionKind;πuse crate::llvm::debuginfo::DebugNameTableKind;πuse crate::llvm;πuse crate::llvm::FromGeneric;πuse crate::llvm::Value;πuse rustc_codegen_ssa::traits::*;π
ModulesΒ§
MacrosΒ§
- return_
if_ πdi_ node_ created_ in_ meantime - Returns from the enclosing function if the type debuginfo node with the given unique ID can be found in the type map.
ConstantsΒ§
- NO_
GENERICS π - A function that returns an empty list of generic parameter debuginfo nodes.
- NO_
SCOPE_ πMETADATA - UNKNOWN_
COLUMN_ πNUMBER - UNKNOWN_
LINE_ πNUMBER
TraitsΒ§
- Msvc
Basic πName
FunctionsΒ§
- apply_
vcall_ πvisibility_ metadata - build_
basic_ πtype_ di_ node - build_
closure_ πenv_ di_ node - Builds the debuginfo node for a closure environment.
- build_
compile_ πunit_ di_ node - build_
cpp_ πfloat_ struct_ di_ node float_tymust be aty::Floatandbits_tymust be aty::Uint.cx.size_of(bits_ty) * bits_names.len()must equalcx.size_of(float_ty).- build_
dyn_ πtype_ di_ node - Create debuginfo for
dyn SomeTraittypes. Currently these are empty structs we with the correct type name (e.g. βdyn SomeTrait<Foo, Item=u32> + Syncβ). - build_
field_ πdi_ node - Creates a
DW_TAG_memberentry inside the DIE represented by the giventype_di_node. - build_
fixed_ πsize_ array_ di_ node - Creates debuginfo for a fixed size array (e.g.
[u64; 123]). For slices (that is, βarraysβ of unknown size) use build_slice_type_di_node. - build_
foreign_ πtype_ di_ node - build_
generic_ πtype_ param_ di_ nodes - Computes the type parameters for a type, if any, for the given metadata.
- build_
global_ πvar_ di_ node - Creates debug information for the given global variable.
- build_
pointer_ πor_ reference_ di_ node - Creates debuginfo for built-in pointer-like things:
- build_
scalable_ πvector_ di_ node - Generate debuginfo for a
#[rustc_scalable_vector]type. - build_
slice_ πtype_ di_ node - Create debuginfo for
[T]andstr. These are unsized. - build_
struct_ πtype_ di_ node - Creates the debuginfo node for a Rust struct type. Maybe be a regular struct or a tuple-struct.
- build_
subroutine_ πtype_ di_ node - build_
tuple_ πtype_ di_ node - Builds the DW_TAG_structure_type debuginfo node for a Rust tuple type.
- build_
union_ πtype_ di_ node - Build the debuginfo node for a Rust
uniontype. - build_
unsafe_ πbinder_ type_ di_ node - Creates the debuginfo node for
unsafe<'a> Tbinder types. - build_
upvar_ πfield_ di_ nodes - Builds the DW_TAG_member debuginfo nodes for the upvars of a closure or coroutine. For a coroutine, this will handle upvars shared by all states.
- build_
vtable_ πtype_ di_ node - Generates LLVM debuginfo for a vtable.
- create_
basic_ πtype - create_
file π - create_
member_ πtype - create_
pointer_ πtype - create_
subroutine_ πtype - create_
vtable_ πdi_ node - Creates debug information for the given vtable, which is for the given type.
- extend_
scope_ πto_ file - Creates an βextensionβ of an existing
DIScopeinto another file. - file_
metadata π - file_
metadata_ πfrom_ def_ id - find_
vtable_ πbehind_ cast - Get the global variable for the vtable.
- hex_
encode π - recursion_
marker_ πtype_ di_ node - size_
and_ πalign_ of - Extract size and alignment from a TyAndLayout.
- spanned_
type_ πdi_ node - tuple_
field_ πname - type_
di_ πnode - Get the debuginfo node for the given type.
- unknown_
file_ πmetadata - visibility_
di_ πflags - Returns the
DIFlagscorresponding to the visibility of the item identified bydid.
Type AliasesΒ§
- Definition
Location π - Small
Vec π