comparison gen/irstate.h @ 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 61f12f4651b5
children
comparison
equal deleted inserted replaced
1570:ab03cfb3a212 1571:8d086d552909
198 llvm::CallInst* call = ir->CreateCall(Callee, ArgBegin, ArgEnd, Name); 198 llvm::CallInst* call = ir->CreateCall(Callee, ArgBegin, ArgEnd, Name);
199 call->setAttributes(funcval->getAttributes()); 199 call->setAttributes(funcval->getAttributes());
200 return call; 200 return call;
201 } 201 }
202 202
203 llvm::BasicBlock* postinvoke = llvm::BasicBlock::Create("postinvoke", topfunc(), scopeend()); 203 llvm::BasicBlock* postinvoke = llvm::BasicBlock::Create(gIR->context(), "postinvoke", topfunc(), scopeend());
204 llvm::InvokeInst* invoke = ir->CreateInvoke(Callee, postinvoke, pad, ArgBegin, ArgEnd, Name); 204 llvm::InvokeInst* invoke = ir->CreateInvoke(Callee, postinvoke, pad, ArgBegin, ArgEnd, Name);
205 if (LLFunction* fn = llvm::dyn_cast<LLFunction>(Callee)) 205 if (LLFunction* fn = llvm::dyn_cast<LLFunction>(Callee))
206 invoke->setAttributes(fn->getAttributes()); 206 invoke->setAttributes(fn->getAttributes());
207 scope() = IRScope(postinvoke, scopeend()); 207 scope() = IRScope(postinvoke, scopeend());
208 return invoke; 208 return invoke;