Files
ldc/ir/irsymbol.h
Tomas Lindquist Olsen c0f2af5afd Added IrTypeFunction and IrTypeDelegate and eliminated IrDType. This means the Type::ir field can be removed. It's the final part needed for the move to a slightly more sane type system. Now the whole thing just needs to be cleaned up :P
Added -v-cg switch, which right now just prints "codegen: module.name (module/name.d)" to stdout, this can really help figuring out where, in some complex build command, things go wrong.
2009-05-16 18:19:52 +02:00

22 lines
311 B
C++

#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