Mercurial > projects > ldc
comparison ir/irsymbol.h @ 1150:2a687353c84d
Added missing new files.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Fri, 27 Mar 2009 23:24:47 +0100 |
parents | |
children | 46f6365a50d7 |
comparison
equal
deleted
inserted
replaced
1149:5ebe8224988b | 1150:2a687353c84d |
---|---|
1 #ifndef __LDC_IR_IRSYMBOL_H__ | |
2 #define __LDC_IR_IRSYMBOL_H__ | |
3 | |
4 #include "ir/ir.h" | |
5 | |
6 /// Base class for all symbols. | |
7 struct IrSymbol | |
8 { | |
9 /// | |
10 IrSymbol(Ir* ir) : ir(ir) {} | |
11 | |
12 /// Migrate symbols to current module if necessary. | |
13 virtual void migrate() = 0; | |
14 | |
15 protected: | |
16 /// | |
17 Ir* ir; | |
18 }; | |
19 | |
20 #endif |