[llvm-commits] [llvm] r49374 - /llvm/trunk/include/llvm/Support/LLVMBuilder.h

Devang Patel dpatel at apple.com
Tue Apr 8 00:30:13 PDT 2008


Author: dpatel
Date: Tue Apr  8 02:30:13 2008
New Revision: 49374

URL: http://llvm.org/viewvc/llvm-project?rev=49374&view=rev
Log:
Add multiple value return instruction constructor.

Modified:
    llvm/trunk/include/llvm/Support/LLVMBuilder.h

Modified: llvm/trunk/include/llvm/Support/LLVMBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/LLVMBuilder.h?rev=49374&r1=49373&r2=49374&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/LLVMBuilder.h (original)
+++ llvm/trunk/include/llvm/Support/LLVMBuilder.h Tue Apr  8 02:30:13 2008
@@ -96,6 +96,10 @@
   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) {





More information about the llvm-commits mailing list