[Wasm] Remove unused WasmI1 type
This commit is contained in:
-1
@@ -357,7 +357,6 @@ class DeclarationGenerator(val context: WasmModuleCodegenContext) : IrElementVis
|
|||||||
|
|
||||||
fun generateDefaultInitializerForType(type: WasmType, g: WasmExpressionBuilder) = when (type) {
|
fun generateDefaultInitializerForType(type: WasmType, g: WasmExpressionBuilder) = when (type) {
|
||||||
WasmI32 -> g.buildConstI32(0)
|
WasmI32 -> g.buildConstI32(0)
|
||||||
WasmI1 -> g.buildConstI32(0)
|
|
||||||
WasmI64 -> g.buildConstI64(0)
|
WasmI64 -> g.buildConstI64(0)
|
||||||
WasmF32 -> g.buildConstF32(0f)
|
WasmF32 -> g.buildConstF32(0f)
|
||||||
WasmF64 -> g.buildConstF64(0.0)
|
WasmF64 -> g.buildConstF64(0.0)
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ sealed class WasmType(
|
|||||||
// TODO: Remove this type.
|
// TODO: Remove this type.
|
||||||
object WasmUnreachableType : WasmType("unreachable", -0x40)
|
object WasmUnreachableType : WasmType("unreachable", -0x40)
|
||||||
object WasmI32 : WasmType("i32", -0x1)
|
object WasmI32 : WasmType("i32", -0x1)
|
||||||
object WasmI1 : WasmType("i32", -0x1)
|
|
||||||
object WasmI64 : WasmType("i64", -0x2)
|
object WasmI64 : WasmType("i64", -0x2)
|
||||||
object WasmF32 : WasmType("f32", -0x3)
|
object WasmF32 : WasmType("f32", -0x3)
|
||||||
object WasmF64 : WasmType("f64", -0x4)
|
object WasmF64 : WasmType("f64", -0x4)
|
||||||
|
|||||||
Reference in New Issue
Block a user