mirror of
https://github.com/mii443/wasmer.git
synced 2025-09-02 23:49:28 +00:00
Update Cranelift to 0.82
This commit is contained in:
@ -9,7 +9,7 @@ use wasmer_compiler::{
|
||||
CustomSections, FunctionAddressMap, FunctionBody, InstructionAddressMap, Relocation,
|
||||
RelocationKind, RelocationTarget, SectionBody, SectionIndex, SourceLoc,
|
||||
};
|
||||
use wasmer_types::entity::{PrimaryMap, SecondaryMap};
|
||||
use wasmer_types::entity::PrimaryMap;
|
||||
use wasmer_vm::libcalls::LibCall;
|
||||
|
||||
fn map_tryfromint_err(error: TryFromIntError) -> CompileError {
|
||||
@ -331,7 +331,6 @@ where
|
||||
Ok(CompiledFunction {
|
||||
compiled_function: wasmer_compiler::CompiledFunction {
|
||||
body: function_body,
|
||||
jt_offsets: SecondaryMap::new(),
|
||||
relocations: relocations
|
||||
.remove_entry(&root_section_index)
|
||||
.map_or(vec![], |(_, v)| v),
|
||||
|
@ -155,11 +155,6 @@ impl FuncTrampoline {
|
||||
"trampoline generation produced relocations".into(),
|
||||
));
|
||||
}
|
||||
if !compiled_function.jt_offsets.is_empty() {
|
||||
return Err(CompileError::Codegen(
|
||||
"trampoline generation produced jump tables".into(),
|
||||
));
|
||||
}
|
||||
// Ignore CompiledFunctionFrameInfo. Extra frame info isn't a problem.
|
||||
|
||||
Ok(FunctionBody {
|
||||
@ -280,11 +275,6 @@ impl FuncTrampoline {
|
||||
"trampoline generation produced relocations".into(),
|
||||
));
|
||||
}
|
||||
if !compiled_function.jt_offsets.is_empty() {
|
||||
return Err(CompileError::Codegen(
|
||||
"trampoline generation produced jump tables".into(),
|
||||
));
|
||||
}
|
||||
// Ignore CompiledFunctionFrameInfo. Extra frame info isn't a problem.
|
||||
|
||||
Ok(FunctionBody {
|
||||
|
Reference in New Issue
Block a user