From 085aa9f825ad891e783e402f60133a028847a86e Mon Sep 17 00:00:00 2001 From: jespergravgaard Date: Sat, 3 Feb 2018 15:46:12 +0100 Subject: [PATCH] Added missing toString/() --- .../java/dk/camelot64/kickc/model/ConstantVarPointer.java | 5 +++++ .../java/dk/camelot64/kickc/test/ref/test-address-of.log | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/dk/camelot64/kickc/model/ConstantVarPointer.java b/src/main/java/dk/camelot64/kickc/model/ConstantVarPointer.java index c0ecbbeca..5251333c0 100644 --- a/src/main/java/dk/camelot64/kickc/model/ConstantVarPointer.java +++ b/src/main/java/dk/camelot64/kickc/model/ConstantVarPointer.java @@ -28,4 +28,9 @@ public class ConstantVarPointer implements ConstantValue { public String toString(Program program) { return "&" + toVar.toString(program); } + + @Override + public String toString() { + return toString(null); + } } diff --git a/src/test/java/dk/camelot64/kickc/test/ref/test-address-of.log b/src/test/java/dk/camelot64/kickc/test/ref/test-address-of.log index 8fdfcdb95..6e8742992 100644 --- a/src/test/java/dk/camelot64/kickc/test/ref/test-address-of.log +++ b/src/test/java/dk/camelot64/kickc/test/ref/test-address-of.log @@ -140,7 +140,7 @@ Simple Condition (boolean~) main::$2 if((byte) main::b#1!=(byte/signed byte/word Succesful SSA optimization Pass2ConditionalJumpSimplification Constant (const byte*) main::SCREEN#0 = ((byte*))1024 Constant (const byte) main::b#0 = 0 -Constant (const byte*) main::bp#0 = dk.camelot64.kickc.model.ConstantVarPointer@655a5d9c +Constant (const byte*) main::bp#0 = &main::b#2 Succesful SSA optimization Pass2ConstantIdentification OPTIMIZING CONTROL FLOW GRAPH Inlining constant with var siblings (const byte) main::b#0