1 //! Debug utils for WebAssembly using Cranelift. 2 3 #![allow(clippy::cast_ptr_alignment)] 4 5 /// Memory definition offset in the VMContext structure. 6 #[derive(Debug, Clone)] 7 pub enum ModuleMemoryOffset { 8 /// Not available. 9 None, 10 /// Offset to the defined memory. 11 Defined(u32), 12 /// Offset to the imported memory. 13 Imported(u32), 14 } 15 16 pub use write_debuginfo::{emit_dwarf, DwarfSection, DwarfSectionRelocTarget}; 17 18 mod gc; 19 mod transform; 20 mod write_debuginfo; 21