comparison gen/llvmhelpers.cpp @ 1571:8d086d552909

IntegerType is now contextifed. Requires llvm >= 78969. resistor says this will be the last context API change :)
author Benjamin Kramer <benny.kra@gmail.com>
date Fri, 14 Aug 2009 00:39:18 +0200
parents 1d5c3354b3c2
children 91af6d05338c
comparison
equal deleted inserted replaced
1570:ab03cfb3a212 1571:8d086d552909
211 211
212 // find target basic block 212 // find target basic block
213 std::string labelname = gIR->func()->gen->getScopedLabelName(target->toChars()); 213 std::string labelname = gIR->func()->gen->getScopedLabelName(target->toChars());
214 llvm::BasicBlock*& targetBB = gIR->func()->gen->labelToBB[labelname]; 214 llvm::BasicBlock*& targetBB = gIR->func()->gen->labelToBB[labelname];
215 if (targetBB == NULL) 215 if (targetBB == NULL)
216 targetBB = llvm::BasicBlock::Create("label_" + labelname, gIR->topfunc()); 216 targetBB = llvm::BasicBlock::Create(gIR->context(), "label_" + labelname, gIR->topfunc());
217 217
218 // emit code for finallys between goto and label 218 // emit code for finallys between goto and label
219 DtoEnclosingHandlers(loc, lblstmt); 219 DtoEnclosingHandlers(loc, lblstmt);
220 220
221 // goto into finally blocks is forbidden by the spec 221 // goto into finally blocks is forbidden by the spec