mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
PR9214: Convert Metadata API to use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129932 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -349,7 +349,7 @@ Value *BitcodeReaderMDValueList::getValueFwdRef(unsigned Idx) {
|
||||
}
|
||||
|
||||
// Create and return a placeholder, which will later be RAUW'd.
|
||||
Value *V = MDNode::getTemporary(Context, 0, 0);
|
||||
Value *V = MDNode::getTemporary(Context, ArrayRef<Value*>());
|
||||
MDValuePtrs[Idx] = V;
|
||||
return V;
|
||||
}
|
||||
@ -843,9 +843,7 @@ bool BitcodeReader::ParseMetadata() {
|
||||
else
|
||||
Elts.push_back(NULL);
|
||||
}
|
||||
Value *V = MDNode::getWhenValsUnresolved(Context,
|
||||
Elts.data(), Elts.size(),
|
||||
IsFunctionLocal);
|
||||
Value *V = MDNode::getWhenValsUnresolved(Context, Elts, IsFunctionLocal);
|
||||
IsFunctionLocal = false;
|
||||
MDValueList.AssignValue(V, NextMDValueNo++);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user