[IRBuilder] Drop unused CreateInvoke overloads.
The arrayref overload is more flexible with virtually the same interface. NFC. llvm-svn: 273867
This commit is contained in:
parent
4c137dbe25
commit
728cf09b0e
|
|
@ -698,28 +698,10 @@ public:
|
||||||
return Insert(IndirectBrInst::Create(Addr, NumDests));
|
return Insert(IndirectBrInst::Create(Addr, NumDests));
|
||||||
}
|
}
|
||||||
|
|
||||||
InvokeInst *CreateInvoke(Value *Callee, BasicBlock *NormalDest,
|
|
||||||
BasicBlock *UnwindDest, const Twine &Name = "") {
|
|
||||||
return Insert(InvokeInst::Create(Callee, NormalDest, UnwindDest, None),
|
|
||||||
Name);
|
|
||||||
}
|
|
||||||
InvokeInst *CreateInvoke(Value *Callee, BasicBlock *NormalDest,
|
|
||||||
BasicBlock *UnwindDest, Value *Arg1,
|
|
||||||
const Twine &Name = "") {
|
|
||||||
return Insert(InvokeInst::Create(Callee, NormalDest, UnwindDest, Arg1),
|
|
||||||
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),
|
|
||||||
Name);
|
|
||||||
}
|
|
||||||
/// \brief Create an invoke instruction.
|
/// \brief Create an invoke instruction.
|
||||||
InvokeInst *CreateInvoke(Value *Callee, BasicBlock *NormalDest,
|
InvokeInst *CreateInvoke(Value *Callee, BasicBlock *NormalDest,
|
||||||
BasicBlock *UnwindDest, ArrayRef<Value *> Args,
|
BasicBlock *UnwindDest,
|
||||||
|
ArrayRef<Value *> Args = None,
|
||||||
const Twine &Name = "") {
|
const Twine &Name = "") {
|
||||||
return Insert(InvokeInst::Create(Callee, NormalDest, UnwindDest, Args),
|
return Insert(InvokeInst::Create(Callee, NormalDest, UnwindDest, Args),
|
||||||
Name);
|
Name);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue