Mercurial > projects > ldc
comparison ir/irfunction.cpp @ 136:0e28624814e8 trunk
[svn r140] did a lot of the work towards being able to pass multiple modules on the command line. not complete yet though
author | lindquist |
---|---|
date | Thu, 17 Jan 2008 03:15:12 +0100 |
parents | |
children | 8f704cb9969b |
comparison
equal
deleted
inserted
replaced
135:176bd52b3cf5 | 136:0e28624814e8 |
---|---|
1 #include "gen/tollvm.h" | |
2 #include "ir/irfunction.h" | |
3 | |
4 IrFinally::IrFinally() | |
5 { | |
6 bb = 0; | |
7 retbb = 0; | |
8 } | |
9 | |
10 IrFinally::IrFinally(llvm::BasicBlock* b, llvm::BasicBlock* rb) | |
11 { | |
12 bb = b; | |
13 retbb = rb; | |
14 } | |
15 | |
16 ////////////////////////////////////////////////////////////////////////////// | |
17 ////////////////////////////////////////////////////////////////////////////// | |
18 ////////////////////////////////////////////////////////////////////////////// | |
19 | |
20 IrFunction::IrFunction(FuncDeclaration* fd) | |
21 { | |
22 decl = fd; | |
23 | |
24 Type* t = DtoDType(fd->type); | |
25 assert(t->ty == Tfunction); | |
26 type = (TypeFunction*)t; | |
27 func = NULL; | |
28 allocapoint = NULL; | |
29 finallyretval = NULL; | |
30 | |
31 queued = false; | |
32 defined = false; | |
33 | |
34 retArg = NULL; | |
35 thisVar = NULL; | |
36 nestedVar = NULL; | |
37 _arguments = NULL; | |
38 _argptr = NULL; | |
39 dwarfSubProg = NULL; | |
40 } | |
41 | |
42 IrFunction::~IrFunction() | |
43 { | |
44 } |