diff gen/irstate.h @ 157:5c17f81fc1c1 trunk

[svn r173] moved IR state previously stored in Type into IrType and a Type->IrType map; fixes #7
author ChristianK
date Thu, 01 May 2008 13:32:08 +0200
parents ccd07d9f2ce9
children 3a891cfcd249
line wrap: on
line diff
--- a/gen/irstate.h	Thu May 01 13:05:53 2008 +0200
+++ b/gen/irstate.h	Thu May 01 13:32:08 2008 +0200
@@ -12,6 +12,7 @@
 #include "ir/irstruct.h"
 #include "ir/irvar.h"
 #include "ir/irsymbol.h"
+#include "ir/irtype.h"
 
 // global ir state for current module
 struct IRState;
@@ -79,6 +80,9 @@
     // ir data associated with DMD Dsymbol nodes 
     std::map<Dsymbol*, IrDsymbol> irDsymbol;
 
+    // ir data associated with DMD Type instances
+    std::map<Type*, IrType> irType;
+
     // functions
     typedef std::vector<IrFunction*> FunctionVector;
     FunctionVector functions;