view ir/irsymbol.h @ 1573:3a08f5e2553b

Fixed iretq problem reported by wilkie of the XomB project
author Kelly Wilson <wilsonk cpsc.ucalgary.ca>
date Mon, 17 Aug 2009 13:42:19 -0600
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