Move definition of ModuleMemoryOffset (#3228)

This was historically defined in `wasmtime-environ` but it's only used
in `wasmtime-cranelift`, so this commit moves the definition to the
`debug` module where it's primarily used.
This commit is contained in:
Alex Crichton
2021-08-23 14:42:21 -05:00
committed by GitHub
parent 22ab535ad9
commit eb21ae149a
9 changed files with 28 additions and 20 deletions

View File

@@ -74,14 +74,3 @@ impl Default for FilePos {
FilePos(u32::MAX)
}
}
/// Memory definition offset in the VMContext structure.
#[derive(Debug, Clone)]
pub enum ModuleMemoryOffset {
/// Not available.
None,
/// Offset to the defined memory.
Defined(u32),
/// Offset to the imported memory.
Imported(u32),
}