[opaque pointer type] Provide a convenience function for creating direct CallInsts to Functions in IRBuilder
Might need a similar convenience in CallInst's ctor too, but we'll see/will add it when it becomes useful. llvm-svn: 237731
This commit is contained in:
parent
de1970fe66
commit
b868ec1c2f
|
@ -1472,6 +1472,11 @@ public:
|
|||
return Insert(CallInst::Create(FTy, Callee, Args), Name);
|
||||
}
|
||||
|
||||
CallInst *CreateCall(Function *Callee, ArrayRef<Value *> Args,
|
||||
const Twine &Name = "") {
|
||||
return CreateCall(Callee->getFunctionType(), Callee, Args, Name);
|
||||
}
|
||||
|
||||
Value *CreateSelect(Value *C, Value *True, Value *False,
|
||||
const Twine &Name = "") {
|
||||
if (Constant *CC = dyn_cast<Constant>(C))
|
||||
|
|
Loading…
Reference in New Issue