Mercurial > projects > ldc
comparison gen/classes.cpp @ 309:d59c363fccad trunk
[svn r330] Implemented synchronized statements.
Changed the tryfinally handlers to a more generalized EnclosingHandler.
Changed ClassInfoS to be mutable so they can be used as locks.
Added new BB after throw ala return/break etc.
author | lindquist |
---|---|
date | Sat, 28 Jun 2008 11:37:53 +0200 |
parents | 7ade5e035beb |
children | a9697749e898 |
comparison
equal
deleted
inserted
replaced
308:6b62e8cdf970 | 309:d59c363fccad |
---|---|
1251 else | 1251 else |
1252 gname.append("11__InterfaceZ"); | 1252 gname.append("11__InterfaceZ"); |
1253 | 1253 |
1254 const LLType* st = cinfo->type->ir.type->get(); | 1254 const LLType* st = cinfo->type->ir.type->get(); |
1255 | 1255 |
1256 cd->ir.irStruct->classInfo = new llvm::GlobalVariable(st, true, DtoLinkage(cd), NULL, gname, gIR->module); | 1256 cd->ir.irStruct->classInfo = new llvm::GlobalVariable(st, false, DtoLinkage(cd), NULL, gname, gIR->module); |
1257 } | 1257 } |
1258 | 1258 |
1259 static LLConstant* build_offti_entry(ClassDeclaration* cd, VarDeclaration* vd) | 1259 static LLConstant* build_offti_entry(ClassDeclaration* cd, VarDeclaration* vd) |
1260 { | 1260 { |
1261 std::vector<const LLType*> types; | 1261 std::vector<const LLType*> types; |