AsmWriter/Bitcode: MDLocalVariable

llvm-svn: 229022
This commit is contained in:
Duncan P. N. Exon Smith
2015-02-13 01:39:44 +00:00
parent 00dbc753db
commit 72fe2d0b79
8 changed files with 124 additions and 10 deletions

View File

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