[Wasm] Require location for buildConstI32Symbol and fix all usages

This commit is contained in:
Zalim Bashorov
2022-12-07 12:43:44 +01:00
parent e69bbdd5b4
commit 36d4e29253
3 changed files with 9 additions and 12 deletions
@@ -32,8 +32,8 @@ abstract class WasmExpressionBuilder {
buildInstr(WasmOp.F64_CONST, location, WasmImmediate.ConstF64(value.toRawBits().toULong()))
}
fun buildConstI32Symbol(value: WasmSymbol<Int>) {
buildInstr(WasmOp.I32_CONST, WasmImmediate.SymbolI32(value))
fun buildConstI32Symbol(value: WasmSymbol<Int>, location: SourceLocation) {
buildInstr(WasmOp.I32_CONST, location, WasmImmediate.SymbolI32(value))
}
fun buildUnreachable() {