From f5af7783897b3d350df8d06f722c8dbf32075d38 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Mon, 3 Apr 2017 17:58:48 +0000 Subject: Bitcode: Remove reader support for MODULE_CODE_PURGEVALS. Support for writing this module code was removed in r73220, which was well before the LLVM 3.0 release, so we do not need to be able to understand it for backwards compatibility. Differential Revision: https://reviews.llvm.org/D31563 llvm-svn: 299370 --- llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp') diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 4198d8f7c10..23649e811ed 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -3060,13 +3060,6 @@ Error BitcodeReader::parseModule(uint64_t ResumeBit, IndirectSymbolInits.push_back(std::make_pair(NewGA, Val)); break; } - /// MODULE_CODE_PURGEVALS: [numvals] - case bitc::MODULE_CODE_PURGEVALS: - // Trim down the value list to the specified size. - if (Record.size() < 1 || Record[0] > ValueList.size()) - return error("Invalid record"); - ValueList.shrinkTo(Record[0]); - break; /// MODULE_CODE_VSTOFFSET: [offset] case bitc::MODULE_CODE_VSTOFFSET: if (Record.size() < 1) -- cgit v1.2.3