]> granicus.if.org Git - llvm/commit
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)
commit0f84babf62b3c369f3cf06adbe7620d41ee5cc6e
treed9dbf7a7f97a74bf3a576ce8dda648c8b12038dc
parentbf977933f414635889cf63c3757b37abfde0b7f8
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285350 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Reader/BitstreamReader.cpp