diff options
author | Devang Patel <dpatel@apple.com> | 2008-04-08 20:41:22 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-04-08 20:41:22 +0000 |
commit | cba931f6010e56f061ed04fe75f6b70906edfdc9 (patch) | |
tree | c8d982b93b7f816b191bff4ef9f456a517d23dc7 | |
parent | 7497b92c2f3de3f6ae78310d8d1fdc6fc78d42db (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.h | 6 |
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)); |