AsmWriter/Bitcode: MDSubroutineType

llvm-svn: 229011
This commit is contained in:
Duncan P. N. Exon Smith
2015-02-13 01:22:59 +00:00
parent aece2dc3f5
commit 54e2bc6c9b
7 changed files with 55 additions and 12 deletions

View File

@@ -1417,6 +1417,16 @@ std::error_code BitcodeReader::ParseMetadata() {
NextMDValueNo++);
break;
}
case bitc::METADATA_SUBROUTINE_TYPE: {
if (Record.size() != 3)
return Error("Invalid record");
MDValueList.AssignValue(
GET_OR_DISTINCT(MDSubroutineType, Record[0],
(Context, Record[1], getMDOrNull(Record[2]))),
NextMDValueNo++);
break;
}
case bitc::METADATA_FILE: {
if (Record.size() != 3)
return Error("Invalid record");