diff options
author | Chris Lattner <sabre@nondot.org> | 2008-05-01 05:23:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-05-01 05:23:45 +0000 |
commit | 70100131d1c368d0902ddb7604d750d6131bba8a (patch) | |
tree | 395c14feee9577fede2da0256b96ee3e330a07e4 /include/llvm/Support/IRBuilder.h | |
parent | 4b9f046869073ab37e376d9314ca1685f103ab19 (diff) | |
download | llvm-70100131d1c368d0902ddb7604d750d6131bba8a.tar.gz llvm-70100131d1c368d0902ddb7604d750d6131bba8a.tar.bz2 llvm-70100131d1c368d0902ddb7604d750d6131bba8a.tar.xz |
Add CreateCall3/CreateCall4 at Eric's request.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/IRBuilder.h')
-rw-r--r-- | include/llvm/Support/IRBuilder.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h index 1bc61aa99f..c965cd3e13 100644 --- a/include/llvm/Support/IRBuilder.h +++ b/include/llvm/Support/IRBuilder.h @@ -480,6 +480,16 @@ public: Value *Args[] = { Arg1, Arg2 }; return Insert(CallInst::Create(Callee, Args, Args+2, Name)); } + CallInst *CreateCall3(Value *Callee, Value *Arg1, Value *Arg2, Value *Arg3, + const char *Name = "") { + Value *Args[] = { Arg1, Arg2, Arg3 }; + return Insert(CallInst::Create(Callee, Args, Args+3, Name)); + } + CallInst *CreateCall4(Value *Callee, Value *Arg1, Value *Arg2, Value *Arg3, + Value *Arg4, const char *Name = "") { + Value *Args[] = { Arg1, Arg2, Arg3, Arg4 }; + return Insert(CallInst::Create(Callee, Args, Args+4, Name)); + } template<typename InputIterator> CallInst *CreateCall(Value *Callee, InputIterator ArgBegin, |