mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
Create yet another helper for Invoke.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90514 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -282,6 +282,14 @@ public:
|
|||||||
return Insert(InvokeInst::Create(Callee, NormalDest, UnwindDest, Args,
|
return Insert(InvokeInst::Create(Callee, NormalDest, UnwindDest, Args,
|
||||||
Args+1), Name);
|
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.
|
/// CreateInvoke - Create an invoke instruction.
|
||||||
template<typename InputIterator>
|
template<typename InputIterator>
|
||||||
InvokeInst *CreateInvoke(Value *Callee, BasicBlock *NormalDest,
|
InvokeInst *CreateInvoke(Value *Callee, BasicBlock *NormalDest,
|
||||||
|
Reference in New Issue
Block a user