Introduce TranslationContext

This commit is contained in:
Sergey Pepyakin
2018-11-29 22:28:10 +01:00
parent 52c0443368
commit 5eb43f027a
3 changed files with 26 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
use backend::*;
use module::TranslationContext;
use error::Error;
use wasmparser::{FuncType, FunctionBody, Operator, Type};
@@ -88,6 +89,7 @@ impl ControlFrame {
pub fn translate(
session: &mut CodeGenSession,
translation_ctx: &TranslationContext,
func_type: &FuncType,
body: &FunctionBody,
) -> Result<(), Error> {