ldc/ir/irtypefunction.h
David Nadlinger dd8652768c Remove unused IrTypeFunction::fty().
The design split between IrFuncTy/IrTypeFunction might need
a review at some point.
2013-06-17 02:37:55 +02:00

51 lines
1.1 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//===-- ir/irtypefunction.h - IrType subclasses for callables ---*- C++ -*-===//
//
// LDC the LLVM D compiler
//
// This file is distributed under the BSD-style LDC license. See the LICENSE
// file for details.
//
//===----------------------------------------------------------------------===//
//
// Provides the IrType subclasses used to represent D function/delegate types.
//
//===----------------------------------------------------------------------===//
#ifndef __LDC_IR_IRTYPEFUNCTION_H__
#define __LDC_IR_IRTYPEFUNCTION_H__
#include "ir/irtype.h"
struct IrFuncTy;
///
class IrTypeFunction : public IrType
{
public:
///
static IrTypeFunction* get(Type* dt, Type* nestedContextOverride = 0);
///
IrTypeFunction* isFunction() { return this; }
protected:
///
IrTypeFunction(Type* dt, llvm::Type* lt);
};
///
class IrTypeDelegate : public IrType
{
public:
///
static IrTypeDelegate* get(Type* dt);
///
IrTypeDelegate* isDelegate() { return this; }
protected:
///
IrTypeDelegate(Type* dt, llvm::Type* lt);
};
#endif