view ir/irfunction.cpp @ 348:3c5e19bfcbf2 trunk

[svn r369] Fix nested classes when nestedVar is not generated.
author ChristianK
date Sun, 13 Jul 2008 21:16:40 +0200
parents d59c363fccad
children d8357f7004ca
line wrap: on
line source


#include "gen/llvm.h"
#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;
}