[llvm-commits] [llvm] r90514 - /llvm/trunk/include/llvm/Support/IRBuilder.h
Mike Stump
mrs at apple.com
Thu Dec 3 17:53:15 PST 2009
Author: mrs
Date: Thu Dec 3 19:53:15 2009
New Revision: 90514
URL: http://llvm.org/viewvc/llvm-project?rev=90514&view=rev
Log:
Create yet another helper for Invoke.
Modified:
llvm/trunk/include/llvm/Support/IRBuilder.h
Modified: llvm/trunk/include/llvm/Support/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/IRBuilder.h?rev=90514&r1=90513&r2=90514&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/IRBuilder.h (original)
+++ llvm/trunk/include/llvm/Support/IRBuilder.h Thu Dec 3 19:53:15 2009
@@ -282,6 +282,14 @@
return Insert(InvokeInst::Create(Callee, NormalDest, UnwindDest, Args,
Args+1), Name);
}
+ InvokeInst *CreateInvoke3(Value *Callee, BasicBlock *NormalDest,
+ BasicBlock *UnwindDest, Value *Arg1,
+ Value *Arg2, Value *Arg3,
+ const Twine &Name = "") {
+ Value *Args[] = { Arg1, Arg2, Arg3 };
+ return Insert(InvokeInst::Create(Callee, NormalDest, UnwindDest, Args,
+ Args+3), Name);
+ }
/// CreateInvoke - Create an invoke instruction.
template<typename InputIterator>
InvokeInst *CreateInvoke(Value *Callee, BasicBlock *NormalDest,
More information about the llvm-commits
mailing list