annotate ir/irtype.h @ 883:b52d5de7783f

GC defines and linkage changes.
author Christian Kamm <kamm incasoftware de>
date Thu, 08 Jan 2009 18:20:02 +0100
parents 340acf1535d0
children
rev   line source
kamm@664 1 #ifndef LDC_IR_IRTYPE_H
kamm@664 2 #define LDC_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 };
ChristianK@158 25
ChristianK@158 26 #endif