diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-13 01:30:42 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-13 01:30:42 +0000 |
commit | 06a0702e4033573be42105bc51bbfeff628a00da (patch) | |
tree | f425c8945b64302e985289583e268207c2c5d218 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | a96d40999702c46894b6aad419e573a4bbc90673 (diff) | |
download | bcm5719-llvm-06a0702e4033573be42105bc51bbfeff628a00da.tar.gz bcm5719-llvm-06a0702e4033573be42105bc51bbfeff628a00da.zip |
AsmWriter/Bitcode: MDLexicalBlockFile
llvm-svn: 229017
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 22dcd2a0812..fa139d74fba 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -1479,6 +1479,17 @@ std::error_code BitcodeReader::ParseMetadata() { NextMDValueNo++); break; } + case bitc::METADATA_LEXICAL_BLOCK_FILE: { + if (Record.size() != 4) + return Error("Invalid record"); + + MDValueList.AssignValue( + GET_OR_DISTINCT(MDLexicalBlockFile, Record[0], + (Context, getMDOrNull(Record[1]), + getMDOrNull(Record[2]), Record[3])), + NextMDValueNo++); + break; + } case bitc::METADATA_STRING: { std::string String(Record.begin(), Record.end()); llvm::UpgradeMDStringConstant(String); |