mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
[svn r140] did a lot of the work towards being able to pass multiple modules on the command line. not complete yet though
This commit is contained in:
44
ir/irfunction.cpp
Normal file
44
ir/irfunction.cpp
Normal file
@@ -0,0 +1,44 @@
|
||||
#include "gen/tollvm.h"
|
||||
#include "ir/irfunction.h"
|
||||
|
||||
IrFinally::IrFinally()
|
||||
{
|
||||
bb = 0;
|
||||
retbb = 0;
|
||||
}
|
||||
|
||||
IrFinally::IrFinally(llvm::BasicBlock* b, llvm::BasicBlock* rb)
|
||||
{
|
||||
bb = b;
|
||||
retbb = rb;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
IrFunction::IrFunction(FuncDeclaration* fd)
|
||||
{
|
||||
decl = fd;
|
||||
|
||||
Type* t = DtoDType(fd->type);
|
||||
assert(t->ty == Tfunction);
|
||||
type = (TypeFunction*)t;
|
||||
func = NULL;
|
||||
allocapoint = NULL;
|
||||
finallyretval = NULL;
|
||||
|
||||
queued = false;
|
||||
defined = false;
|
||||
|
||||
retArg = NULL;
|
||||
thisVar = NULL;
|
||||
nestedVar = NULL;
|
||||
_arguments = NULL;
|
||||
_argptr = NULL;
|
||||
dwarfSubProg = NULL;
|
||||
}
|
||||
|
||||
IrFunction::~IrFunction()
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user