mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-03 17:31:50 +00:00
Add CreateGetResult()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49398 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7497b92c2f
commit
cba931f601
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user