mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
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
This commit is contained in:
parent
df298c9ea6
commit
c60a475091
@ -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 = "") {
|
||||
|
Loading…
Reference in New Issue
Block a user