diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-04-07 00:03:25 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-04-07 00:03:25 +0000 |
commit | c60a47509162412c4a776abae28402541bb73b15 (patch) | |
tree | 8263f3fa085f36793f86aefab55f3ae3ff8fc517 /include/llvm/Support/IRBuilder.h | |
parent | df298c9ea64eb335f63fc075d8ef6306682ffe75 (diff) | |
download | external_llvm-c60a47509162412c4a776abae28402541bb73b15.tar.gz external_llvm-c60a47509162412c4a776abae28402541bb73b15.tar.bz2 external_llvm-c60a47509162412c4a776abae28402541bb73b15.zip |
Add support for ArrayRef in IRBuilder's CreateCall.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129039 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/IRBuilder.h')
-rw-r--r-- | include/llvm/Support/IRBuilder.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h index 6d0c196e32..626d22cea3 100644 --- a/include/llvm/Support/IRBuilder.h +++ b/include/llvm/Support/IRBuilder.h @@ -17,6 +17,7 @@ #include "llvm/Instructions.h" #include "llvm/BasicBlock.h" +#include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/Twine.h" #include "llvm/Support/ConstantFolder.h" @@ -1102,6 +1103,11 @@ public: return Insert(CallInst::Create(Callee, Args, Args+5), Name); } + CallInst *CreateCall(Value *Callee, ArrayRef<Value *> Arg, + const Twine &Name = "") { + return Insert(CallInst::Create(Callee, Arg.begin(), Arg.end(), Name)); + } + template<typename RandomAccessIterator> CallInst *CreateCall(Value *Callee, RandomAccessIterator ArgBegin, RandomAccessIterator ArgEnd, const Twine &Name = "") { |