llvm.org GIT mirror llvm / 7bceb16
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299370 91177308-0d34-0410-b5e6-96231b3b80d8 Peter Collingbourne 2 years ago
4 changed file(s) with 0 addition(s) and 21 deletion(s). Raw diff Collapse all Expand all
837837
838838 * *unnamed_addr*: If present, an encoding of the
839839 :ref:`unnamed_addr` attribute of this alias
840
841 MODULE_CODE_PURGEVALS Record
842 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
843
844 ``[PURGEVALS, numvals]``
845
846 The ``PURGEVALS`` record (code 10) resets the module-level value list to the
847 size given by the single operand value. Module-level value list items are added
848 by ``GLOBALVAR``, ``FUNCTION``, and ``ALIAS`` records. After a ``PURGEVALS``
849 record is seen, new value indices will start from the given *numvals* value.
850840
851841 .. _MODULE_CODE_GCNAME:
852842
9090
9191 // ALIAS: [alias type, aliasee val#, linkage, visibility]
9292 MODULE_CODE_ALIAS_OLD = 9,
93
94 // MODULE_CODE_PURGEVALS: [numvals]
95 MODULE_CODE_PURGEVALS = 10,
9693
9794 MODULE_CODE_GCNAME = 11, // GCNAME: [strchr x N]
9895 MODULE_CODE_COMDAT = 12, // COMDAT: [selection_kind, name]
30593059 IndirectSymbolInits.push_back(std::make_pair(NewGA, Val));
30603060 break;
30613061 }
3062 /// MODULE_CODE_PURGEVALS: [numvals]
3063 case bitc::MODULE_CODE_PURGEVALS:
3064 // Trim down the value list to the specified size.
3065 if (Record.size() < 1 || Record[0] > ValueList.size())
3066 return error("Invalid record");
3067 ValueList.shrinkTo(Record[0]);
3068 break;
30693062 /// MODULE_CODE_VSTOFFSET: [offset]
30703063 case bitc::MODULE_CODE_VSTOFFSET:
30713064 if (Record.size() < 1)
170170 STRINGIFY_CODE(MODULE_CODE, GLOBALVAR)
171171 STRINGIFY_CODE(MODULE_CODE, FUNCTION)
172172 STRINGIFY_CODE(MODULE_CODE, ALIAS)
173 STRINGIFY_CODE(MODULE_CODE, PURGEVALS)
174173 STRINGIFY_CODE(MODULE_CODE, GCNAME)
175174 STRINGIFY_CODE(MODULE_CODE, VSTOFFSET)
176175 STRINGIFY_CODE(MODULE_CODE, METADATA_VALUES_UNUSED)