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

Devang Patel dpatel at apple.com
Tue Apr 8 13:41:23 PDT 2008


Author: dpatel
Date: Tue Apr  8 15:41:22 2008
New Revision: 49398

URL: http://llvm.org/viewvc/llvm-project?rev=49398&view=rev
Log:
Add CreateGetResult()

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=49398&r1=49397&r2=49398&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/LLVMBuilder.h (original)
+++ llvm/trunk/include/llvm/Support/LLVMBuilder.h Tue Apr  8 15:41:22 2008
@@ -100,7 +100,11 @@
   ReturnInst *CreateRet(Value * const* retVals, unsigned N) {
     return Insert(ReturnInst::Create(retVals,  N));
   }
-  
+
+  GetResultInst *CreateGetResult(Value *V, unsigned Index, const char *Name = "") {
+    return Insert(new GetResultInst(V, Index, Name));
+  }
+
   /// CreateBr - Create an unconditional 'br label X' instruction.
   BranchInst *CreateBr(BasicBlock *Dest) {
     return Insert(BranchInst::Create(Dest));





More information about the llvm-commits mailing list