diff 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
line wrap: on
line diff
--- a/gen/irstate.h	Wed Oct 03 02:15:12 2007 +0200
+++ b/gen/irstate.h	Wed Oct 03 04:56:32 2007 +0200
@@ -78,9 +78,11 @@
     // classes TODO move into IRClass
     typedef std::vector<ClassDeclaration*> ClassDeclVec;
     ClassDeclVec classes;
+
     typedef std::vector<FuncDeclaration*> FuncDeclVec;
     typedef std::vector<FuncDeclVec> ClassMethodVec;
     ClassMethodVec classmethods;
+
     typedef std::vector<bool> BoolVec;
     BoolVec queueClassMethods;
 
@@ -111,6 +113,9 @@
     // VarDeclaration for __dollar, but I can't see how to get the
     // array pointer from this :(
     LvalVec arrays;
+
+    // keeping track of the declaration for the current function body
+    FuncDeclVec funcdecls;
 };
 
 #endif // LLVMDC_GEN_IRSTATE_H