Mercurial > projects > ldc
view ir/irsymbol.h @ 1365:65505c9d70f5
Added explicit alignment for aggregate __initZ symbols, this is needed for some union types, or the default initializer symbol might be misaligned.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Sat, 16 May 2009 18:25:01 +0200 |
parents | 46f6365a50d7 |
children |
line wrap: on
line source
#ifndef __LDC_IR_IRSYMBOL_H__ #define __LDC_IR_IRSYMBOL_H__ #include "ir/ir.h" /// Base class for all symbols. class IrSymbol { public: /// IrSymbol(Ir* ir) : ir(ir) {} /// Migrate symbols to current module if necessary. virtual void migrate() = 0; protected: /// Ir* ir; }; #endif