view ir/irsymbol.h @ 1451:297d1e2f6441

Add `syscall` to the x86-64 asm parser, and both `syscall` and `sysret` to the x86 one. Fixes #316.
author Frits van Bommel <fvbommel wxs.nl>
date Mon, 01 Jun 2009 23:42:42 +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