Bitcode: Simplify BitstreamWriter::EnterBlockInfoBlock() interface.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 1 Nov 2016 01:18:57 +0000 (01:18 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 1 Nov 2016 01:18:57 +0000 (01:18 +0000)
commitd3a6c70b2dd6bfa5b0dbd21a38987749a326899f
tree1eb86bd51516f3268e20ef1bfa28259b5291cf5c
parentf3dd863031ddc75cab9abdf2d6dc21da58d1b622
Bitcode: Simplify BitstreamWriter::EnterBlockInfoBlock() interface.

No block info block should need to define local abbreviations, so we can
always use a code width of 2.

Also change all block info block writers to use EnterBlockInfoBlock.

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

llvm-svn: 285660
clang/lib/Frontend/SerializedDiagnosticPrinter.cpp
clang/lib/Serialization/ASTWriter.cpp
clang/lib/Serialization/GlobalModuleIndex.cpp
llvm/include/llvm/Bitcode/BitstreamWriter.h
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp