Move the metadata constructors back to 2.5 syntax.

llvm-svn: 77733
This commit is contained in:
Owen Anderson
2009-07-31 21:35:40 +00:00
parent 0d5f37b81a
commit 0087fe6e5c
8 changed files with 60 additions and 94 deletions

View File

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