Mercurial > projects > ldc
view ir/irtypefunction.h @ 1494:b243e28f63d4
Generate less dead code by deleting unreachable blocks at the end of functions
(which would otherwise appear if a function ends with a return, for example).
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Fri, 12 Jun 2009 16:41:38 +0200 |
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