mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Move the metadata constructors back to 2.5 syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77733 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -774,7 +774,7 @@ bool BitcodeReader::ParseMetadata() {
|
||||
else
|
||||
Elts.push_back(NULL);
|
||||
}
|
||||
Value *V = Context.getMDNode(&Elts[0], Elts.size());
|
||||
Value *V = MDNode::get(Context, &Elts[0], Elts.size());
|
||||
ValueList.AssignValue(V, NextValueNo++);
|
||||
break;
|
||||
}
|
||||
@ -784,7 +784,8 @@ bool BitcodeReader::ParseMetadata() {
|
||||
String.resize(MDStringLength);
|
||||
for (unsigned i = 0; i != MDStringLength; ++i)
|
||||
String[i] = Record[i];
|
||||
Value *V = Context.getMDString(StringRef(String.data(), String.size()));
|
||||
Value *V = MDString::get(Context,
|
||||
StringRef(String.data(), String.size()));
|
||||
ValueList.AssignValue(V, NextValueNo++);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user