AsmWriter/Bitcode: MDSubroutineType

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

No files matched your search

+10
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");