Add a spiffy little "CreateCall2" method, which can be used to make

a function call that takes two Value*'s as arguments.

llvm-svn: 50514
This commit is contained in:
Chris Lattner 2008-05-01 05:11:00 +00:00
parent 757d7d318a
commit 09cf777a96

View File

@ -475,6 +475,11 @@ public:
CallInst *CreateCall(Value *Callee, Value *Arg, const char *Name = "") {
return Insert(CallInst::Create(Callee, Arg, Name));
}
CallInst *CreateCall2(Value *Callee, Value *Arg1, Value *Arg2,
const char *Name = "") {
Value *Args[] = { Arg1, Arg2 };
return Insert(CallInst::Create(Callee, Args, Args+2, Name));
}
template<typename InputIterator>
CallInst *CreateCall(Value *Callee, InputIterator ArgBegin,