eliminate calls to deprecated Use::init() interface

llvm-svn: 51570
This commit is contained in:
Gabor Greif
2008-05-26 21:33:52 +00:00
parent a61cc6ece0
commit 2d3024d838
6 changed files with 145 additions and 145 deletions

View File

@@ -180,7 +180,7 @@ Constant *BitcodeReaderValueList::getConstantFwdRef(unsigned Idx,
// Create and return a placeholder, which will later be RAUW'd.
Constant *C = new ConstantPlaceHolder(Ty);
OperandList[Idx].init(C, this);
OperandList[Idx] = C;
return C;
}
@@ -201,7 +201,7 @@ Value *BitcodeReaderValueList::getValueFwdRef(unsigned Idx, const Type *Ty) {
// Create and return a placeholder, which will later be RAUW'd.
Value *V = new Argument(Ty);
OperandList[Idx].init(V, this);
OperandList[Idx] = V;
return V;
}