llvm-project/llvm/lib/Bitcode/Reader
Peter Collingbourne bfcf9800b8 Bitcode: Change expected layout of module blocks.
We now expect each module's identification block to appear immediately before
the module block. Any module block that appears without an identification block
immediately before it is interpreted as if it does not have a module block.

Also change the interpretation of VST and function offsets in bitcode.
The offset is always taken as relative to the start of the identification
(or module if not present) block, minus one word. This corresponds to the
historical interpretation of offsets, i.e. relative to the start of the file.

These changes allow for bitcode modules to be concatenated by copying bytes.

Differential Revision: https://reviews.llvm.org/D27184

llvm-svn: 288098
2016-11-29 02:27:04 +00:00
..
BitReader.cpp Add explicit (void) cast to unused unique_ptr::release() results 2016-11-14 07:26:17 +00:00
BitcodeReader.cpp Bitcode: Change expected layout of module blocks. 2016-11-29 02:27:04 +00:00
BitstreamReader.cpp Bitcode: Decouple block info block state from reader. 2016-11-08 04:17:11 +00:00
CMakeLists.txt [CMake] NFC. Updating CMake dependency specifications 2016-11-17 04:36:50 +00:00
LLVMBuild.txt