mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-25 17:59:27 +00:00
Middleware for LLVM.
This commit is contained in:
@ -32,7 +32,8 @@ use wasm_common::{
|
||||
use wasmer_compiler::wasmparser::{MemoryImmediate, Operator};
|
||||
use wasmer_compiler::{
|
||||
to_wasm_error, wptype_to_type, CompileError, CompiledFunction, CustomSections,
|
||||
FunctionBodyData, MiddlewareBinaryReader, ModuleTranslationState, RelocationTarget,
|
||||
FunctionBodyData, GenerateMiddlewareChain, MiddlewareBinaryReader, ModuleTranslationState,
|
||||
RelocationTarget,
|
||||
};
|
||||
use wasmer_runtime::{MemoryPlan, ModuleInfo, TablePlan};
|
||||
|
||||
@ -133,6 +134,11 @@ impl FuncTranslator {
|
||||
function_body.data,
|
||||
function_body.module_offset,
|
||||
);
|
||||
reader.set_middleware_chain(
|
||||
config
|
||||
.middlewares
|
||||
.generate_middleware_chain(*local_func_index),
|
||||
);
|
||||
|
||||
let mut params = vec![];
|
||||
let first_param =
|
||||
|
Reference in New Issue
Block a user