annotate 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
rev   line source
ChristianK@158 1 #ifndef LLVMDC_IR_IRTYPE_H
ChristianK@158 2 #define LLVMDC_IR_IRTYPE_H
ChristianK@158 3
ChristianK@173 4 #include <set>
ChristianK@158 5
ChristianK@158 6 namespace llvm {
ChristianK@158 7 class PATypeHolder;
ChristianK@158 8 }
ChristianK@158 9
ChristianK@158 10 struct IrType
ChristianK@158 11 {
ChristianK@173 12 static std::set<IrType*> list;
ChristianK@173 13 static void resetAll();
ChristianK@173 14
ChristianK@173 15 // overload all of these to make sure
ChristianK@173 16 // the static list is up to date
ChristianK@173 17 IrType();
ChristianK@173 18 IrType(const IrType& s);
ChristianK@173 19 ~IrType();
ChristianK@173 20
ChristianK@173 21 void reset();
ChristianK@173 22
ChristianK@158 23 llvm::PATypeHolder* type;
ChristianK@158 24 llvm::PATypeHolder* vtblType;
ChristianK@158 25 };
ChristianK@158 26
ChristianK@158 27 #endif