Struct rustc_codegen_llvm::debuginfo::CrateDebugContext
source · [−]pub struct CrateDebugContext<'a, 'tcx> {
llcontext: &'a Context,
llmod: &'a Module,
builder: &'a mut DIBuilder<'a>,
created_files: RefCell<FxHashMap<(Option<String>, Option<String>), &'a DIFile>>,
created_enum_disr_types: RefCell<FxHashMap<(DefId, Primitive), &'a DIType>>,
type_map: RefCell<TypeMap<'a, 'tcx>>,
namespace_map: RefCell<DefIdMap<&'a DIScope>>,
composite_types_completed: RefCell<FxHashSet<&'a DIType>>,
}Expand description
A context object for maintaining all state needed by the debuginfo module.
Fields
llcontext: &'a Contextllmod: &'a Modulebuilder: &'a mut DIBuilder<'a>created_files: RefCell<FxHashMap<(Option<String>, Option<String>), &'a DIFile>>created_enum_disr_types: RefCell<FxHashMap<(DefId, Primitive), &'a DIType>>type_map: RefCell<TypeMap<'a, 'tcx>>namespace_map: RefCell<DefIdMap<&'a DIScope>>composite_types_completed: RefCell<FxHashSet<&'a DIType>>Implementations
sourceimpl<'a, 'tcx> CrateDebugContext<'a, 'tcx>
impl<'a, 'tcx> CrateDebugContext<'a, 'tcx>
Trait Implementations
Auto Trait Implementations
impl<'a, 'tcx> !RefUnwindSafe for CrateDebugContext<'a, 'tcx>
impl<'a, 'tcx> !Send for CrateDebugContext<'a, 'tcx>
impl<'a, 'tcx> !Sync for CrateDebugContext<'a, 'tcx>
impl<'a, 'tcx> Unpin for CrateDebugContext<'a, 'tcx>
impl<'a, 'tcx> !UnwindSafe for CrateDebugContext<'a, 'tcx>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 392 bytes