aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/shedlang/compiler/backends/wasm/WasmBackend.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/shedlang/compiler/backends/wasm/WasmBackend.java b/src/main/java/org/shedlang/compiler/backends/wasm/WasmBackend.java
index 926d0b79..9cdbee8c 100644
--- a/src/main/java/org/shedlang/compiler/backends/wasm/WasmBackend.java
+++ b/src/main/java/org/shedlang/compiler/backends/wasm/WasmBackend.java
@@ -34,9 +34,13 @@ public class WasmBackend implements Backend {
public static final WasmBackend WASM32 = new WasmBackend(WasmTarget.WASM32);
public static final WasmBackend WASM64 = new WasmBackend(WasmTarget.WASM64);
+ public static WasmBackend forTarget(WasmTarget target) {
+ return new WasmBackend(target);
+ }
+
private final WasmTarget target;
- public WasmBackend(WasmTarget target) {
+ private WasmBackend(WasmTarget target) {
this.target = target;
}