This commit was manufactured by cvs2svn to create tag 'buildscript'.
[IRC.git] /
1 package IR.Flat;
2
3 public class FlatReturnNode extends FlatNode {
4     TempDescriptor tempdesc;
5
6     public FlatReturnNode(TempDescriptor td) {
7         this.tempdesc=td;
8     }
9
10     public String toString() {
11         return "return "+tempdesc;
12     }
13
14     public int kind() {
15         return FKind.FlatReturnNode;
16     }
17
18     public TempDescriptor [] readsTemps() {
19         if (tempdesc==null)
20             return new TempDescriptor [0];
21         else
22             return new TempDescriptor [] {tempdesc};
23     }
24
25     public TempDescriptor getReturnTemp() {
26         return tempdesc;
27     }
28 }