Mercurial > projects > ldc
comparison gen/asmstmt.cpp @ 1554:d6e8d5db259f
LLVMContext changes up to r77366
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Thu, 30 Jul 2009 15:25:10 +0200 |
parents | 7fcb72d518f6 |
children | 8d086d552909 |
comparison
equal
deleted
inserted
replaced
1553:f55ca8a1598c | 1554:d6e8d5db259f |
---|---|
767 // add all cases | 767 // add all cases |
768 std::map<Identifier*, int>::iterator it, end = gotoToVal.end(); | 768 std::map<Identifier*, int>::iterator it, end = gotoToVal.end(); |
769 for(it = gotoToVal.begin(); it != end; ++it) | 769 for(it = gotoToVal.begin(); it != end; ++it) |
770 { | 770 { |
771 llvm::BasicBlock* casebb = llvm::BasicBlock::Create("case", p->topfunc(), bb); | 771 llvm::BasicBlock* casebb = llvm::BasicBlock::Create("case", p->topfunc(), bb); |
772 sw->addCase(gIR->context().getConstantInt(llvm::IntegerType::get(32), it->second), casebb); | 772 sw->addCase(LLConstantInt::get(llvm::IntegerType::get(32), it->second), casebb); |
773 | 773 |
774 p->scope() = IRScope(casebb,bb); | 774 p->scope() = IRScope(casebb,bb); |
775 DtoGoto(loc, it->first, enclosingFinally); | 775 DtoGoto(loc, it->first, enclosingFinally); |
776 } | 776 } |
777 | 777 |