Mercurial > projects > ldc
comparison ir/irfunction.cpp @ 145:8f704cb9969b trunk
[svn r150] fixes #16 and #17, implements GotoCaseStatement
author | ChristianK |
---|---|
date | Sat, 08 Mar 2008 15:22:07 +0100 |
parents | 0e28624814e8 |
children | e881c9b1c738 |
comparison
equal
deleted
inserted
replaced
144:a27941d00351 | 145:8f704cb9969b |
---|---|
1 #include "gen/tollvm.h" | 1 #include "gen/tollvm.h" |
2 #include "ir/irfunction.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 | 3 |
16 ////////////////////////////////////////////////////////////////////////////// | 4 ////////////////////////////////////////////////////////////////////////////// |
17 ////////////////////////////////////////////////////////////////////////////// | 5 ////////////////////////////////////////////////////////////////////////////// |
18 ////////////////////////////////////////////////////////////////////////////// | 6 ////////////////////////////////////////////////////////////////////////////// |
19 | 7 |
24 Type* t = DtoDType(fd->type); | 12 Type* t = DtoDType(fd->type); |
25 assert(t->ty == Tfunction); | 13 assert(t->ty == Tfunction); |
26 type = (TypeFunction*)t; | 14 type = (TypeFunction*)t; |
27 func = NULL; | 15 func = NULL; |
28 allocapoint = NULL; | 16 allocapoint = NULL; |
29 finallyretval = NULL; | |
30 | 17 |
31 queued = false; | 18 queued = false; |
32 defined = false; | 19 defined = false; |
33 | 20 |
34 retArg = NULL; | 21 retArg = NULL; |