view ir/irtypefunction.h @ 1599:0a4be54234d6

Revert fix by Robert for downs as it causes a segfault when compiling tango.
author Kelly Wilson <wilsonk cpsc.ucalgary.ca>
date Wed, 23 Dec 2009 22:49:20 -0700
parents 46f6365a50d7
children
line wrap: on
line source

#ifndef __LDC_IR_IRTYPEFUNCTION_H__
#define __LDC_IR_IRTYPEFUNCTION_H__

#include "ir/irtype.h"

class IrFuncTy;

///
class IrTypeFunction : public IrType
{
public:
    ///
    IrTypeFunction(Type* dt);

    ///
    IrTypeFunction* isFunction()  { return this; }

    ///
    const llvm::Type* buildType();

    IrFuncTy* fty() { return irfty; }

protected:
    ///
    IrFuncTy* irfty;
};

///
class IrTypeDelegate : public IrType
{
public:
    ///
    IrTypeDelegate(Type* dt);

    ///
    IrTypeDelegate* isDelegate()    { return this; }

    ///
    const llvm::Type* buildType();
};

#endif