mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-24 12:29:33 +00:00
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237731 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e5a723675b
commit
b9b3fb261e
@ -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…
x
Reference in New Issue
Block a user