view ir/irsymbol.h @ 1239:ff1b4cc2e9be

Make !TypeInfo output lazy unless we need to provide full definitions in general.
author Tomas Lindquist Olsen <tomas.l.olsen gmail.com>
date Thu, 16 Apr 2009 22:20:26 +0200
parents 2a687353c84d
children 46f6365a50d7
line wrap: on
line source

#ifndef __LDC_IR_IRSYMBOL_H__
#define __LDC_IR_IRSYMBOL_H__

#include "ir/ir.h"

/// Base class for all symbols.
struct IrSymbol
{
    ///
    IrSymbol(Ir* ir) : ir(ir) {}

    /// Migrate symbols to current module if necessary.
    virtual void migrate() = 0;

protected:
    ///
    Ir* ir;
};

#endif