diff gen/irstate.h @ 116:fd7ad91fd713 trunk

[svn r120] ModuleInfo implementation is now almost complete. Fixed some nasty static array-initializer bugs. Fixed bug in DtoArrayLen and DtoArrayPtr for full slices of static arrays.
author lindquist
date Sun, 25 Nov 2007 18:55:52 +0100
parents 27b9f749d9fe
children 0e28624814e8
line wrap: on
line diff
--- a/gen/irstate.h	Sun Nov 25 03:58:55 2007 +0100
+++ b/gen/irstate.h	Sun Nov 25 18:55:52 2007 +0100
@@ -218,6 +218,12 @@
     DsymbolList constInitList;
     // dsymbols that need definitions
     DsymbolList defineList;
+
+    // static ctors/dtors/unittests
+    typedef std::vector<FuncDeclaration*> FuncDeclVector;
+    FuncDeclVector ctors;
+    FuncDeclVector dtors;
+    FuncDeclVector unitTests;
 };
 
 #endif // LLVMDC_GEN_IRSTATE_H