This commit was manufactured by cvs2svn to create tag 'buildscript'.
[IRC.git] / Robust / src / IR / Flat / FlatLiteralNode.java
diff --git a/Robust/src/IR/Flat/FlatLiteralNode.java b/Robust/src/IR/Flat/FlatLiteralNode.java
deleted file mode 100644 (file)
index 93b814b..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-package IR.Flat;
-import IR.TypeDescriptor;
-
-public class FlatLiteralNode extends FlatNode {
-    Object value;
-    TypeDescriptor type;
-    TempDescriptor dst;
-
-    public FlatLiteralNode(TypeDescriptor type, Object o, TempDescriptor dst) {
-       this.type=type;
-       value=o;
-       this.dst=dst;
-    }
-
-    public TypeDescriptor getType() {
-       return type;
-    }
-
-    public TempDescriptor getDst() {
-       return dst;
-    }
-
-    public Object getValue() {
-       return value;
-    }
-
-    public String toString() {
-       if (value==null)
-           return dst+"=null";
-       else
-           return dst+"="+escapeString(value.toString());
-    }
-    protected static String escapeString(String st) {
-       String new_st="";
-       for(int i=0;i<st.length();i++) {
-           char x=st.charAt(i);
-           if (x=='\n')
-               new_st+="\\n";
-           else if (x=='\r')
-               new_st+="\\r";
-           else if (x=='"')
-               new_st+="\\\"";
-           else new_st+=x;
-       }
-       return new_st;
-    }
-
-    public int kind() {
-       return FKind.FlatLiteralNode;
-    }
-
-    public TempDescriptor [] writesTemps() {
-       return new TempDescriptor[] {dst};
-    }
-}