Move frame info into it’s own field

This commit is contained in:
Syrus
2020-04-30 21:22:18 -07:00
parent 37bb00718a
commit cebf727e80
5 changed files with 36 additions and 28 deletions

View File

@ -19,7 +19,8 @@ use wasm_common::{
use wasmer_compiler::CompileError;
use wasmer_compiler::FunctionBodyData;
use wasmer_compiler::{
Compilation, CompiledFunction, Compiler, JumpTable, SourceLoc, TrapInformation,
Compilation, CompiledFunction, CompiledFunctionFrameInfo, Compiler, JumpTable, SourceLoc,
TrapInformation,
};
use wasmer_compiler::{CompilerConfig, ModuleTranslationState, Target};
use wasmer_compiler::{Relocation, RelocationTarget};
@ -255,9 +256,11 @@ impl Compiler for CraneliftCompiler {
body: code_buf,
jt_offsets: func_jt_offsets,
unwind_info,
address_map,
relocations: reloc_sink.func_relocs,
traps: trap_sink.traps,
frame_info: CompiledFunctionFrameInfo {
address_map,
traps: trap_sink.traps,
},
})
})
.collect::<Result<Vec<_>, CompileError>>()?