Changed use of toObjFile to a new codegen method.

More versioning of DMD specific codegen code.
This commit is contained in:
Tomas Lindquist Olsen
2009-03-27 17:54:27 +01:00
parent c42c90ea80
commit daef67acc3
23 changed files with 446 additions and 351 deletions

13
ir/ir.h
View File

@@ -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