From d198788e4d4da184bf6a931ce2cceb19288659d5 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 30 Jun 2023 18:56:13 +0100 Subject: Replace WasmDataSymbol with WasmDataElement --- .../backends/wasm/structure/WasmBinaryFormatModuleTests.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/test/java') diff --git a/src/test/java/org/shedlang/compiler/backends/wasm/structure/WasmBinaryFormatModuleTests.java b/src/test/java/org/shedlang/compiler/backends/wasm/structure/WasmBinaryFormatModuleTests.java index b2e080c3..99b92179 100644 --- a/src/test/java/org/shedlang/compiler/backends/wasm/structure/WasmBinaryFormatModuleTests.java +++ b/src/test/java/org/shedlang/compiler/backends/wasm/structure/WasmBinaryFormatModuleTests.java @@ -5,8 +5,6 @@ import org.junit.jupiter.api.extension.ExtendWith; import org.shedlang.compiler.backends.wasm.structure.ast.instructions.WasmExpression; import org.shedlang.compiler.backends.wasm.structure.ast.instructions.WasmI32Const; import org.shedlang.compiler.backends.wasm.structure.ast.instructions.WasmI64Const; -import org.shedlang.compiler.backends.wasm.structure.ast.linking.WasmDataSegmentIndex; -import org.shedlang.compiler.backends.wasm.structure.ast.linking.WasmDataSymbol; import org.shedlang.compiler.backends.wasm.structure.ast.linking.WasmInitFunc; import org.shedlang.compiler.backends.wasm.structure.ast.modules.*; import org.shedlang.compiler.backends.wasm.structure.ast.types.*; @@ -284,15 +282,13 @@ public class WasmBinaryFormatModuleTests { new WasmExpression(List.of(new WasmI32Const(0))), WasmAlignment.ALIGN_32_BIT, List.of( - new WasmDataSymbol( + new WasmDataElement( "data1", - new WasmDataSegmentIndex(0), 0, 2 ), - new WasmDataSymbol( + new WasmDataElement( "data2", - new WasmDataSegmentIndex(0), 2, 2 ) @@ -304,9 +300,8 @@ public class WasmBinaryFormatModuleTests { new WasmExpression(List.of(new WasmI32Const(4))), WasmAlignment.NONE, List.of( - new WasmDataSymbol( + new WasmDataElement( "rodata1", - new WasmDataSegmentIndex(1), 0, 4 ) -- cgit v1.2.3