BitcodeReader: Require clients to read the block info block at most once.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 27 Oct 2016 21:39:28 +0000 (21:39 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 27 Oct 2016 21:39:28 +0000 (21:39 +0000)
commitfc0a99bfda0b18458bbbf5605be0aac3b83e038a
treee859351bf1612a0791e9fd4bcef1b81e44eb1449
parent80de16f65319d7a091f8eb7123fa80259f0520ba
BitcodeReader: Require clients to read the block info block at most once.

This change makes it the client's responsibility to call ReadBlockInfoBlock()
at most once. This is in preparation for a future change that will allow
there to be multiple block info blocks.

See also: http://lists.llvm.org/pipermail/llvm-dev/2016-October/106512.html

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

llvm-svn: 285350
llvm/lib/Bitcode/Reader/BitstreamReader.cpp