mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
Added -v-cg switch, which right now just prints "codegen: module.name (module/name.d)" to stdout, this can really help figuring out where, in some complex build command, things go wrong.
43 lines
597 B
C++
43 lines
597 B
C++
#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
|