aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-04-08 07:30:13 +0000
committerDevang Patel <dpatel@apple.com>2008-04-08 07:30:13 +0000
commit751858304488f40ea4632c0b217799df159b15cd (patch)
treebfbf987332cdfb81ae0de35c72d85d4632aeedff
parent92432a8db1266f7932bce13a7e6354b0993838d3 (diff)
Add multiple value return instruction constructor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49374 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/LLVMBuilder.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/LLVMBuilder.h b/include/llvm/Support/LLVMBuilder.h
index c82bfd7b18..22d607792a 100644
--- a/include/llvm/Support/LLVMBuilder.h
+++ b/include/llvm/Support/LLVMBuilder.h
@@ -96,6 +96,10 @@ public:
ReturnInst *CreateRet(Value *V) {
return Insert(ReturnInst::Create(V));
}
+
+ ReturnInst *CreateRet(Value * const* retVals, unsigned N) {
+ return Insert(ReturnInst::Create(retVals, N));
+ }
/// CreateBr - Create an unconditional 'br label X' instruction.
BranchInst *CreateBr(BasicBlock *Dest) {