diff options
author | Mike Stump <mrs@apple.com> | 2009-12-04 01:53:15 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-12-04 01:53:15 +0000 |
commit | 9b195eaefd1fbffe2df5cd7378182eb836505240 (patch) | |
tree | 695cb83b4098db46c8c6f35ac089a35337c85ff2 | |
parent | 97e2450de2ee50f51e42317d91a40b6d5ae65d0c (diff) |
Create yet another helper for Invoke.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90514 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Support/IRBuilder.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h index 773fcd1449..4e5df00fce 100644 --- a/include/llvm/Support/IRBuilder.h +++ b/include/llvm/Support/IRBuilder.h @@ -282,6 +282,14 @@ public: 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, |