comparison 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
comparison
equal deleted inserted replaced
1146:1860414bf3b7 1147:dbe4af57b240
4 #define LDC_IR_IR_H 4 #define LDC_IR_IR_H
5 5
6 #include "ir/irforw.h" 6 #include "ir/irforw.h"
7 #include "root.h" 7 #include "root.h"
8 8
9 struct IRState;
10
9 struct IrBase : Object 11 struct IrBase : Object
10 { 12 {
11 virtual ~IrBase() {} 13 virtual ~IrBase() {}
12 }; 14 };
13 15
16 struct Ir
17 {
18 Ir() : irs(NULL) {}
19
20 void setState(IRState* p) { irs = p; }
21 IRState* getState() { return irs; }
22
23 private:
24 IRState* irs;
25 };
26
14 #endif 27 #endif