diff gen/irstate.h @ 156:ccd07d9f2ce9 trunk

[svn r172] moving all IR state previously stored in Dsymbol into IrDsymbol and a Dsymbol->IrDsymbol map
author ChristianK
date Thu, 01 May 2008 13:05:53 +0200
parents 7f92f477ff53
children 5c17f81fc1c1
line wrap: on
line diff
--- a/gen/irstate.h	Tue Apr 29 21:33:50 2008 +0200
+++ b/gen/irstate.h	Thu May 01 13:05:53 2008 +0200
@@ -11,6 +11,7 @@
 #include "ir/irfunction.h"
 #include "ir/irstruct.h"
 #include "ir/irvar.h"
+#include "ir/irsymbol.h"
 
 // global ir state for current module
 struct IRState;
@@ -26,6 +27,8 @@
 struct BaseClass;
 struct TryFinallyStatement;
 
+struct IrModule;
+
 // represents a scope
 struct IRScope
 {
@@ -73,12 +76,13 @@
     Module* dmodule;
     llvm::Module* module;
 
+    // ir data associated with DMD Dsymbol nodes 
+    std::map<Dsymbol*, IrDsymbol> irDsymbol;
+
     // functions
     typedef std::vector<IrFunction*> FunctionVector;
     FunctionVector functions;
     IrFunction* func();
-    // ir data associated with function declarations
-    std::map<FuncDeclaration*, IrFunction*> irFunc;
 
     llvm::Function* topfunc();
     TypeFunction* topfunctype();