Finish migrating VMCore to StringRef/Twine based APIs.

llvm-svn: 77051
This commit is contained in:
Daniel Dunbar committed 2009-07-25 06:02:13 +00:00
1 parent fbea11ae66
commit d43b86d4a4
17 files changed
+127 -142

No files matched your search

+1 -2
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;
}