mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-24 17:29:26 +00:00
Use blocktype_params_results
in lieu of blocktype_to_types
.
Remove read_info.rs entirely. Add `to_compile_error` that converts a WasmResult into a Result<_, CompileError>, use it with `wptype_to_type`. This is a candidate for being moved into shared code. Many functions had to change to deal with propagating CompileError.
This commit is contained in:
@ -49,7 +49,7 @@ impl Compiler for LLVMCompiler {
|
||||
fn compile_module<'data, 'module>(
|
||||
&self,
|
||||
module: &'module ModuleInfo,
|
||||
_module_translation: &ModuleTranslationState,
|
||||
module_translation: &ModuleTranslationState,
|
||||
function_body_inputs: PrimaryMap<LocalFunctionIndex, FunctionBodyData<'data>>,
|
||||
memory_plans: PrimaryMap<MemoryIndex, MemoryPlan>,
|
||||
table_plans: PrimaryMap<TableIndex, TablePlan>,
|
||||
@ -76,6 +76,7 @@ impl Compiler for LLVMCompiler {
|
||||
//let mut data = data.lock().unwrap();
|
||||
func_translator.translate(
|
||||
module,
|
||||
module_translation,
|
||||
i,
|
||||
input,
|
||||
self.config(),
|
||||
|
Reference in New Issue
Block a user