From 3dad6dca1663e700fbdb8999eb6aca9db2b12d7b Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 12 Apr 2026 10:55:05 +0100 Subject: Remove old TODO --- .../java/org/shedlang/compiler/backends/targets/WasmTarget.java | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src') diff --git a/src/main/java/org/shedlang/compiler/backends/targets/WasmTarget.java b/src/main/java/org/shedlang/compiler/backends/targets/WasmTarget.java index 42aeea5c..413cead5 100644 --- a/src/main/java/org/shedlang/compiler/backends/targets/WasmTarget.java +++ b/src/main/java/org/shedlang/compiler/backends/targets/WasmTarget.java @@ -68,15 +68,6 @@ public enum WasmTarget { } public WasmValueType functionPtrType() { - // TODO: there's a problem here: wasm64 uses 32-bit function pointers, - // but C uses void* for all pointers, which will be 64-bit on wasm64. - // We could either: - // * Change the C definition of a closure to use a 32-bit int, and cast - // it to a void* on use, or - // * Change the Wasm backend to treat Patio function pointers as 64-bit, - // and convert from 32-bit to 64-bit when referencing table indices. - // We currently do the latter, but may want to consider the former (or - // some other alternative). return sizeT; } -- cgit v1.2.3