mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 15:40:55 +03:00
35 lines
760 B
C++
35 lines
760 B
C++
#include "gen/tollvm.h"
|
|
#include "ir/irfunction.h"
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
IrFunction::IrFunction(FuncDeclaration* fd)
|
|
{
|
|
decl = fd;
|
|
|
|
Type* t = DtoDType(fd->type);
|
|
assert(t->ty == Tfunction);
|
|
type = (TypeFunction*)t;
|
|
func = NULL;
|
|
allocapoint = NULL;
|
|
|
|
queued = false;
|
|
defined = false;
|
|
|
|
retArg = NULL;
|
|
thisVar = NULL;
|
|
nestedVar = NULL;
|
|
_arguments = NULL;
|
|
_argptr = NULL;
|
|
dwarfSubProg = NULL;
|
|
|
|
srcfileArg = NULL;
|
|
msgArg = NULL;
|
|
inVolatile = false;
|
|
}
|
|
|
|
IrFunction::~IrFunction()
|
|
{
|
|
}
|