1
0
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:
Devang Patel 2008-04-08 20:41:22 +00:00
parent b430cf3b7c
commit f08f0a6de6

View File

@ -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));