mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Add CreateGetResult()
llvm-svn: 49398
This commit is contained in:
parent
b430cf3b7c
commit
f08f0a6de6
@ -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