start of new file
[IRC.git] / Robust / src / IR / Flat / FlatTagDeclaration.java
1 package IR.Flat;
2 import IR.TagDescriptor;
3
4 public class FlatTagDeclaration extends FlatNode {
5     TempDescriptor dst;
6     TagDescriptor type;
7     
8     public FlatTagDeclaration(TagDescriptor type, TempDescriptor dst) {
9         this.type=type;
10         this.dst=dst;
11     }
12
13     public String toString() {
14         return "FlatTagDeclaration_"+dst.toString()+"= new Tag("+type.toString()+")";
15     }
16
17     public int kind() {
18         return FKind.FlatTagDeclaration;
19     }
20
21     public TempDescriptor [] writesTemps() {
22         return new TempDescriptor[] {dst};
23     }
24
25     public TempDescriptor [] readsTemps() {
26         return new TempDescriptor[0];
27     }
28
29     public TempDescriptor getDst() {
30         return dst;
31     }
32
33     public TagDescriptor getType() {
34         return type;
35     }
36 }