comparison ir/irtype.h @ 173:db9890b3fb64 trunk

[svn r189] moving IR data back into DMD frontend nodes
author ChristianK
date Tue, 06 May 2008 07:56:03 +0200
parents 287540c5f05e
children aca17e55b7a5
comparison
equal deleted inserted replaced
172:68a7dd38c03c 173:db9890b3fb64
1 #ifndef LLVMDC_IR_IRTYPE_H 1 #ifndef LLVMDC_IR_IRTYPE_H
2 #define LLVMDC_IR_IRTYPE_H 2 #define LLVMDC_IR_IRTYPE_H
3 3
4 #include "ir/ir.h" 4 #include <set>
5 5
6 namespace llvm { 6 namespace llvm {
7 class PATypeHolder; 7 class PATypeHolder;
8 } 8 }
9 9
10 struct IrType 10 struct IrType
11 { 11 {
12 static std::set<IrType*> list;
13 static void resetAll();
14
15 // overload all of these to make sure
16 // the static list is up to date
17 IrType();
18 IrType(const IrType& s);
19 ~IrType();
20
21 void reset();
22
12 llvm::PATypeHolder* type; 23 llvm::PATypeHolder* type;
13 llvm::PATypeHolder* vtblType; 24 llvm::PATypeHolder* vtblType;
14 }; 25 };
15 26
16 #endif 27 #endif