mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-24 09:19:25 +00:00
Code cleanup. Remove reimplementation of type_to_llvm_ptr, use the one in intrinsics instead.
This commit is contained in:
@ -55,10 +55,7 @@ fn wptype_to_type(ty: wasmparser::Type) -> WasmResult<Type> {
|
||||
}
|
||||
}
|
||||
|
||||
pub struct FuncTranslator {
|
||||
ctx: Context,
|
||||
}
|
||||
|
||||
// TODO: move this into inkwell.
|
||||
fn const_zero(ty: BasicTypeEnum) -> BasicValueEnum {
|
||||
match ty {
|
||||
BasicTypeEnum::ArrayType(ty) => ty.const_zero().as_basic_value_enum(),
|
||||
@ -70,6 +67,10 @@ fn const_zero(ty: BasicTypeEnum) -> BasicValueEnum {
|
||||
}
|
||||
}
|
||||
|
||||
pub struct FuncTranslator {
|
||||
ctx: Context,
|
||||
}
|
||||
|
||||
impl FuncTranslator {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
|
Reference in New Issue
Block a user