Mercurial > projects > ldc
view ir/irfunction.cpp @ 353:a7a26f538d6e trunk
[svn r374] Move label target basic block from AST to IRFunction. This is a first step to allowing labels to be emitted multiple times. (for instance within finally blocks)
author | ChristianK |
---|---|
date | Mon, 14 Jul 2008 11:07:15 +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; }