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