Add CreateGetResult()

llvm-svn: 49398
This commit is contained in:
Devang Patel 2008-04-08 20:41:22 +00:00
parent ba0e4237aa
commit 0a14b5b649
1 changed files with 5 additions and 1 deletions

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