diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-13 01:14:58 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-13 01:14:58 +0000 |
commit | 09e03f38d664ed09b6add37050c2df6cf1116272 (patch) | |
tree | d039abc6012ba4fc9b945c6b1d995d024253a6b7 /llvm/lib/Bitcode/Reader | |
parent | 87754764199bf7547b5336b35e9a704143c177b7 (diff) | |
download | bcm5719-llvm-09e03f38d664ed09b6add37050c2df6cf1116272.tar.gz bcm5719-llvm-09e03f38d664ed09b6add37050c2df6cf1116272.zip |
AsmWriter/Bitcode: MDBasicType
llvm-svn: 229005
Diffstat (limited to 'llvm/lib/Bitcode/Reader')
-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 f7f0db27285..2d0364945f7 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -1371,6 +1371,17 @@ std::error_code BitcodeReader::ParseMetadata() { NextMDValueNo++); break; } + case bitc::METADATA_BASIC_TYPE: { + if (Record.size() != 6) + return Error("Invalid record"); + + MDValueList.AssignValue( + GET_OR_DISTINCT(MDBasicType, Record[0], + (Context, Record[1], getMDString(Record[2]), + Record[3], Record[4], Record[5])), + NextMDValueNo++); + break; + } case bitc::METADATA_STRING: { std::string String(Record.begin(), Record.end()); llvm::UpgradeMDStringConstant(String); |