AsmWriter/Bitcode: MDImportedEntity

llvm-svn: 229025
This commit is contained in:
Duncan P. N. Exon Smith
2015-02-13 01:46:02 +00:00
parent d45ce96c38
commit 1c93116489
9 changed files with 91 additions and 10 deletions

View File

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