view ir/irsymbol.h @ 1260:3d6a908a34e9

Add `#include "gen/llvm-version.h"` to files that use the macro it defines...
author Frits van Bommel <fvbommel wxs.nl>
date Fri, 24 Apr 2009 16:47:42 +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