Mercurial > projects > ldc
diff 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 |
line wrap: on
line diff
--- a/ir/irtype.h Tue May 06 07:26:27 2008 +0200 +++ b/ir/irtype.h Tue May 06 07:56:03 2008 +0200 @@ -1,7 +1,7 @@ #ifndef LLVMDC_IR_IRTYPE_H #define LLVMDC_IR_IRTYPE_H -#include "ir/ir.h" +#include <set> namespace llvm { class PATypeHolder; @@ -9,6 +9,17 @@ struct IrType { + static std::set<IrType*> list; + static void resetAll(); + + // overload all of these to make sure + // the static list is up to date + IrType(); + IrType(const IrType& s); + ~IrType(); + + void reset(); + llvm::PATypeHolder* type; llvm::PATypeHolder* vtblType; };