[svn r173] moved IR state previously stored in Type into IrType and a Type->IrType map; fixes #7

This commit is contained in:
Christian Kamm
2008-05-01 13:32:08 +02:00
parent 24726394f6
commit 91ae70e969
12 changed files with 98 additions and 108 deletions

View File

@@ -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 @@ struct IRState
// 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;