Files
ldc/ir/ir.h
Tomas Lindquist Olsen daef67acc3 Changed use of toObjFile to a new codegen method.
More versioning of DMD specific codegen code.
2009-03-27 17:54:27 +01:00

28 lines
371 B
C++

// this head contains stuff used by all the IR
#ifndef LDC_IR_IR_H
#define LDC_IR_IR_H
#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