From: Devang Patel Date: Tue, 8 Apr 2008 20:41:22 +0000 (+0000) Subject: Add CreateGetResult() X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cba931f6010e56f061ed04fe75f6b70906edfdc9;p=oota-llvm.git Add CreateGetResult() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49398 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/LLVMBuilder.h b/include/llvm/Support/LLVMBuilder.h index 22d607792a1..2df552e5f92 100644 --- a/include/llvm/Support/LLVMBuilder.h +++ b/include/llvm/Support/LLVMBuilder.h @@ -100,7 +100,11 @@ public: 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));