projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7497b92
)
Add CreateGetResult()
author
Devang Patel
<dpatel@apple.com>
Tue, 8 Apr 2008 20:41:22 +0000
(20:41 +0000)
committer
Devang Patel
<dpatel@apple.com>
Tue, 8 Apr 2008 20:41:22 +0000
(20:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49398
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/LLVMBuilder.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/LLVMBuilder.h
b/include/llvm/Support/LLVMBuilder.h
index 22d607792a10255b6e10f92243c17d5f24d84c15..2df552e5f922446da6687658e2c3b95e5c992352 100644
(file)
--- 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));