aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Support/LLVMBuilder.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Support/LLVMBuilder.h b/include/llvm/Support/LLVMBuilder.h
index 22d607792a..2df552e5f9 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));