aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-06-11 23:02:41 +0100
committerMichael Williamson <mike@zwobble.org>2023-06-11 23:02:41 +0100
commit5564950ec34d3be47b9e39d3c8cdf58c0b38af1d (patch)
tree0965a71e3f41ab532d4dd04a29a5e47d7a28238a /src/main/java
parent594488a5ac0edef9074ed8957c65137cee453e37 (diff)
Compile push-unit instruction to LLVM IR
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/shedlang/compiler/backends/llvm/LlvmCompiler.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/org/shedlang/compiler/backends/llvm/LlvmCompiler.java b/src/main/java/org/shedlang/compiler/backends/llvm/LlvmCompiler.java
index be5dbf8c..710e9c7f 100644
--- a/src/main/java/org/shedlang/compiler/backends/llvm/LlvmCompiler.java
+++ b/src/main/java/org/shedlang/compiler/backends/llvm/LlvmCompiler.java
@@ -40,9 +40,8 @@ public class LlvmCompiler {
case PushStringInstruction pushStringInstruction -> {
throw new UnsupportedOperationException("TODO");
}
- case PushUnitInstruction pushUnitInstruction -> {
- throw new UnsupportedOperationException("TODO");
- }
+ case PushUnitInstruction pushUnit ->
+ context.push(new LlvmOperandInt(0));
};
}
}