diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-31 21:35:40 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-31 21:35:40 +0000 |
commit | 647e3016de18d2fc8b0f233a0b356809e3fdcc54 (patch) | |
tree | b7139544af240b94b3627101328ed7a81e3b9580 /lib/Bitcode | |
parent | feba7562ec3420b52d9d395ae4b279157c55586b (diff) |
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
Diffstat (limited to 'lib/Bitcode')
-rw-r--r-- | lib/Bitcode/Reader/BitcodeReader.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index 40920d87e9..81fdbd29af 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp @@ -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; } |