Mercurial > projects > ldc
comparison gen/irstate.h @ 15:37a4fdab33fc trunk
[svn r19] * Added support for reassigning 'this' inside class constructors.
* Added preliminary support for UnrolledLoopStatement. That is foreach on a tuple.
author | lindquist |
---|---|
date | Wed, 03 Oct 2007 04:56:32 +0200 |
parents | 35d93ce68cf4 |
children | 2841234d2aea |
comparison
equal
deleted
inserted
replaced
14:0e86428ee567 | 15:37a4fdab33fc |
---|---|
76 IRStruct& topstruct(); | 76 IRStruct& topstruct(); |
77 | 77 |
78 // classes TODO move into IRClass | 78 // classes TODO move into IRClass |
79 typedef std::vector<ClassDeclaration*> ClassDeclVec; | 79 typedef std::vector<ClassDeclaration*> ClassDeclVec; |
80 ClassDeclVec classes; | 80 ClassDeclVec classes; |
81 | |
81 typedef std::vector<FuncDeclaration*> FuncDeclVec; | 82 typedef std::vector<FuncDeclaration*> FuncDeclVec; |
82 typedef std::vector<FuncDeclVec> ClassMethodVec; | 83 typedef std::vector<FuncDeclVec> ClassMethodVec; |
83 ClassMethodVec classmethods; | 84 ClassMethodVec classmethods; |
85 | |
84 typedef std::vector<bool> BoolVec; | 86 typedef std::vector<bool> BoolVec; |
85 BoolVec queueClassMethods; | 87 BoolVec queueClassMethods; |
86 | 88 |
87 // D main function | 89 // D main function |
88 bool emitMain; | 90 bool emitMain; |
109 // this holds the array being indexed or sliced so $ will work | 111 // this holds the array being indexed or sliced so $ will work |
110 // might be a better way but it works. problem is I only get a | 112 // might be a better way but it works. problem is I only get a |
111 // VarDeclaration for __dollar, but I can't see how to get the | 113 // VarDeclaration for __dollar, but I can't see how to get the |
112 // array pointer from this :( | 114 // array pointer from this :( |
113 LvalVec arrays; | 115 LvalVec arrays; |
116 | |
117 // keeping track of the declaration for the current function body | |
118 FuncDeclVec funcdecls; | |
114 }; | 119 }; |
115 | 120 |
116 #endif // LLVMDC_GEN_IRSTATE_H | 121 #endif // LLVMDC_GEN_IRSTATE_H |