Finish migrating VMCore to StringRef/Twine based APIs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77051 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2009-07-25 06:02:13 +00:00
parent 8b5ee823c2
commit 92ccf70ad4
17 changed files with 127 additions and 142 deletions

View File

@ -757,8 +757,7 @@ bool BitcodeReader::ParseMetadata() {
String.resize(MDStringLength);
for (unsigned i = 0; i != MDStringLength; ++i)
String[i] = Record[i];
Value *V =
Context.getMDString(String.c_str(), MDStringLength);
Value *V = Context.getMDString(StringRef(String.data(), String.size()));
ValueList.AssignValue(V, NextValueNo++);
break;
}