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 | 9363fdc9b7a50375ddd43d5ed041782a45a0bb55 (patch) | |
| tree | 8ba82fc7a8d098db0bfd6cfd1b0b88c46c0f2006 /llvm/include | |
| parent | bdff1c997aab5458ca4c23029143fad3f036dc1b (diff) | |
| download | bcm5719-llvm-9363fdc9b7a50375ddd43d5ed041782a45a0bb55.tar.gz bcm5719-llvm-9363fdc9b7a50375ddd43d5ed041782a45a0bb55.zip | |
Add support for ArrayRef in IRBuilder's CreateCall.
llvm-svn: 129039
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Support/IRBuilder.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/IRBuilder.h b/llvm/include/llvm/Support/IRBuilder.h index 6d0c196e32b..626d22cea35 100644 --- a/llvm/include/llvm/Support/IRBuilder.h +++ b/llvm/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 = "") { |

