AsmWriter/Bitcode: MDObjCProperty

llvm-svn: 229024
This commit is contained in:
Duncan P. N. Exon Smith
2015-02-13 01:43:22 +00:00
parent 0c5c0124ac
commit d45ce96c38
8 changed files with 103 additions and 9 deletions

View File

@@ -1562,6 +1562,19 @@ std::error_code BitcodeReader::ParseMetadata() {
NextMDValueNo++);
break;
}
case bitc::METADATA_OBJC_PROPERTY: {
if (Record.size() != 8)
return Error("Invalid record");
MDValueList.AssignValue(
GET_OR_DISTINCT(MDObjCProperty, Record[0],
(Context, getMDString(Record[1]),
getMDOrNull(Record[2]), Record[3],
getMDString(Record[4]), getMDString(Record[5]),
Record[6], getMDOrNull(Record[7]))),
NextMDValueNo++);
break;
}
case bitc::METADATA_STRING: {
std::string String(Record.begin(), Record.end());
llvm::UpgradeMDStringConstant(String);