projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5a7236
)
[opaque pointer type] Provide a convenience function for creating direct CallInsts...
author
David Blaikie
<dblaikie@gmail.com>
Tue, 19 May 2015 21:47:12 +0000
(21:47 +0000)
committer
David Blaikie
<dblaikie@gmail.com>
Tue, 19 May 2015 21:47:12 +0000
(21:47 +0000)
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
include/llvm/IR/IRBuilder.h
patch
|
blob
|
history
diff --git
a/include/llvm/IR/IRBuilder.h
b/include/llvm/IR/IRBuilder.h
index 1c2f178b9f417968b8bd53fd153c40f875723275..31344c8d4a7692a9a548b1e49ed0d2accaf5d4c1 100644
(file)
--- a/
include/llvm/IR/IRBuilder.h
+++ b/
include/llvm/IR/IRBuilder.h
@@
-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))