changes
[IRC.git] / Robust / src / IR / Flat / FlatNew.java
index 5061607590cb79fd37424fb3aa1236e958323218..27e9a935565674cb134904fdadafd00576dd1ce7 100644 (file)
@@ -16,6 +16,17 @@ public class FlatNew extends FlatNode {
     this.disjointId=null;
   }
 
+  public void rewriteUse(TempMap t) {
+    size=t.tempMap(size);
+  }
+  public void rewriteDef(TempMap t) {
+    dst=t.tempMap(dst);
+  }
+
+  public FlatNode clone(TempMap t) {
+    return new FlatNew(type, t.tempMap(dst), t.tempMap(size), isglobal, disjointId);
+  }
+
   public FlatNew(TypeDescriptor type, TempDescriptor dst, boolean isglobal, String disjointId) {
     this.type=type;
     this.dst=dst;