view ir/irfunction.cpp @ 204:11fe364b9a3e trunk

[svn r220] Added: test results for [219]
author lindquist
date Tue, 13 May 2008 16:16:50 +0200
parents e881c9b1c738
children 9d44ec83acd1
line wrap: on
line source

#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;
}

IrFunction::~IrFunction()
{
}