Mercurial > projects > ldc
comparison ir/irlandingpad.cpp @ 1148:3d1b16dabd25
Eliminated the need for resolve, declare, const-init and define lists to drive code generation.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Fri, 27 Mar 2009 21:50:32 +0100 |
parents | f04dde6e882c |
children | 79758fd2f48a |
comparison
equal
deleted
inserted
replaced
1147:dbe4af57b240 | 1148:3d1b16dabd25 |
---|---|
47 gIR->ir->CreateBr(end); | 47 gIR->ir->CreateBr(end); |
48 | 48 |
49 assert(catchstmt->type); | 49 assert(catchstmt->type); |
50 catchType = catchstmt->type->toBasetype()->isClassHandle(); | 50 catchType = catchstmt->type->toBasetype()->isClassHandle(); |
51 assert(catchType); | 51 assert(catchType); |
52 DtoForceDeclareDsymbol(catchType); | 52 catchType->codegen(Type::sir); |
53 } | 53 } |
54 | 54 |
55 IRLandingPadInfo::IRLandingPadInfo(Statement* finallystmt) | 55 IRLandingPadInfo::IRLandingPadInfo(Statement* finallystmt) |
56 : target(NULL), finallyBody(finallystmt), catchType(NULL) | 56 : target(NULL), finallyBody(finallystmt), catchType(NULL) |
57 { | 57 { |