projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[opaque pointer type] Provide a convenience for IRBuilder::CreateCall that accepts...
[oota-llvm.git]
/
include
/
llvm
/
IR
/
IRBuilder.h
diff --git
a/include/llvm/IR/IRBuilder.h
b/include/llvm/IR/IRBuilder.h
index 730cb697100846b5baab3864db432112d16df545..c5481fb54a173884908a6ff29a6ae5c2ef61210a 100644
(file)
--- a/
include/llvm/IR/IRBuilder.h
+++ b/
include/llvm/IR/IRBuilder.h
@@
-21,6
+21,7
@@
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/ConstantFolder.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/ConstantFolder.h"
#include "llvm/IR/DataLayout.h"
+#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/LLVMContext.h"
@@
-1466,6
+1467,12
@@
public:
return Insert(CallInst::Create(Callee, Args), Name);
}
return Insert(CallInst::Create(Callee, Args), Name);
}
+ CallInst *CreateCall(Function *Callee, ArrayRef<Value *> Args,
+ const Twine &Name = "") {
+ return Insert(CallInst::Create(Callee->getFunctionType(), Callee, Args),
+ Name);
+ }
+
Value *CreateSelect(Value *C, Value *True, Value *False,
const Twine &Name = "") {
if (Constant *CC = dyn_cast<Constant>(C))
Value *CreateSelect(Value *C, Value *True, Value *False,
const Twine &Name = "") {
if (Constant *CC = dyn_cast<Constant>(C))