AsmWriter/Bitcode: MDLexicalBlock

llvm-svn: 229016
This commit is contained in:
Duncan P. N. Exon Smith
2015-02-13 01:29:28 +00:00
parent 890533e987
commit a96d409997
7 changed files with 79 additions and 9 deletions

View File

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