aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-04-08 20:41:22 +0000
committerDevang Patel <dpatel@apple.com>2008-04-08 20:41:22 +0000
commitcba931f6010e56f061ed04fe75f6b70906edfdc9 (patch)
treec8d982b93b7f816b191bff4ef9f456a517d23dc7
parent7497b92c2f3de3f6ae78310d8d1fdc6fc78d42db (diff)
Add CreateGetResult()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49398 91177308-0d34-0410-b5e6-96231b3b80d8
-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));