Mercurial > projects > ldc
diff ir/ir.h @ 1147:dbe4af57b240
Changed use of toObjFile to a new codegen method.
More versioning of DMD specific codegen code.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Fri, 27 Mar 2009 17:54:27 +0100 |
parents | eef8ac26c66c |
children | 3d1b16dabd25 |
line wrap: on
line diff
--- a/ir/ir.h Thu Mar 26 20:45:53 2009 +0100 +++ b/ir/ir.h Fri Mar 27 17:54:27 2009 +0100 @@ -6,9 +6,22 @@ #include "ir/irforw.h" #include "root.h" +struct IRState; + struct IrBase : Object { virtual ~IrBase() {} }; +struct Ir +{ + Ir() : irs(NULL) {} + + void setState(IRState* p) { irs = p; } + IRState* getState() { return irs; } + +private: + IRState* irs; +}; + #endif