mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 05:38:19 +00:00
Remove unused sourceloc
This commit is contained in:
@@ -108,12 +108,11 @@ impl binemit::TrapSink for TrapSink {
|
||||
fn trap(
|
||||
&mut self,
|
||||
code_offset: binemit::CodeOffset,
|
||||
source_loc: ir::SourceLoc,
|
||||
_source_loc: ir::SourceLoc,
|
||||
trap_code: ir::TrapCode,
|
||||
) {
|
||||
self.traps.push(TrapInformation {
|
||||
code_offset,
|
||||
source_loc: SourceLoc::new(source_loc.bits()),
|
||||
// TODO: Translate properly environment Trapcode into cranelift IR
|
||||
trap_code: translate_ir_trapcode(trap_code),
|
||||
});
|
||||
|
||||
@@ -8179,7 +8179,6 @@ impl<'a> FuncGen<'a> {
|
||||
.into_iter()
|
||||
.map(|(offset, code)| TrapInformation {
|
||||
code_offset: offset as u32,
|
||||
source_loc: Default::default(),
|
||||
trap_code: code,
|
||||
})
|
||||
.collect(),
|
||||
|
||||
@@ -10,8 +10,6 @@ use wasmer_vm::TrapCode;
|
||||
pub struct TrapInformation {
|
||||
/// The offset of the trapping instruction in native code. It is relative to the beginning of the function.
|
||||
pub code_offset: CodeOffset,
|
||||
/// Location of trapping instruction in WebAssembly binary module.
|
||||
pub source_loc: SourceLoc,
|
||||
/// Code of the trap.
|
||||
pub trap_code: TrapCode,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user