diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-13 01:29:28 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-13 01:29:28 +0000 |
commit | a96d40999702c46894b6aad419e573a4bbc90673 (patch) | |
tree | bf34989a887523bad13fa9f986b07d72d8c21b7c /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 890533e987c8ba71e09ea3cac19061d520dbbf23 (diff) | |
download | bcm5719-llvm-a96d40999702c46894b6aad419e573a4bbc90673.tar.gz bcm5719-llvm-a96d40999702c46894b6aad419e573a4bbc90673.zip |
AsmWriter/Bitcode: MDLexicalBlock
llvm-svn: 229016
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 12996d19e0d..22dcd2a0812 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -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); |