view ir/irsymbol.h @ 1566:c03d164e96d9

lookupTarget no longer takes a Module. And we need to get TargetData from the module if the Target doesn't have it.
author Benjamin Kramer <benny.kra@gmail.com>
date Tue, 04 Aug 2009 12:21:59 +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