mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 10:57:35 +03:00

This removed quite some clutter that has presumably piled up because LDC is seldom built with a lot of warnings enabled due to DMDFE.
42 lines
598 B
C++
42 lines
598 B
C++
#ifndef __LDC_IR_IRTYPEFUNCTION_H__
|
|
#define __LDC_IR_IRTYPEFUNCTION_H__
|
|
|
|
#include "ir/irtype.h"
|
|
|
|
struct 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
|