Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
156:ccd07d9f2ce9 | 157:5c17f81fc1c1 |
---|---|
10 | 10 |
11 #include "ir/irfunction.h" | 11 #include "ir/irfunction.h" |
12 #include "ir/irstruct.h" | 12 #include "ir/irstruct.h" |
13 #include "ir/irvar.h" | 13 #include "ir/irvar.h" |
14 #include "ir/irsymbol.h" | 14 #include "ir/irsymbol.h" |
15 #include "ir/irtype.h" | |
15 | 16 |
16 // global ir state for current module | 17 // global ir state for current module |
17 struct IRState; | 18 struct IRState; |
18 extern IRState* gIR; | 19 extern IRState* gIR; |
19 extern const llvm::TargetData* gTargetData; | 20 extern const llvm::TargetData* gTargetData; |
77 llvm::Module* module; | 78 llvm::Module* module; |
78 | 79 |
79 // ir data associated with DMD Dsymbol nodes | 80 // ir data associated with DMD Dsymbol nodes |
80 std::map<Dsymbol*, IrDsymbol> irDsymbol; | 81 std::map<Dsymbol*, IrDsymbol> irDsymbol; |
81 | 82 |
83 // ir data associated with DMD Type instances | |
84 std::map<Type*, IrType> irType; | |
85 | |
82 // functions | 86 // functions |
83 typedef std::vector<IrFunction*> FunctionVector; | 87 typedef std::vector<IrFunction*> FunctionVector; |
84 FunctionVector functions; | 88 FunctionVector functions; |
85 IrFunction* func(); | 89 IrFunction* func(); |
86 | 90 |