summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2016-11-01 01:18:57 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2016-11-01 01:18:57 +0000
commitd3a6c70b2dd6bfa5b0dbd21a38987749a326899f (patch)
tree1eb86bd51516f3268e20ef1bfa28259b5291cf5c /llvm/lib/Bitcode
parentf3dd863031ddc75cab9abdf2d6dc21da58d1b622 (diff)
downloadbcm5719-llvm-d3a6c70b2dd6bfa5b0dbd21a38987749a326899f.tar.gz
bcm5719-llvm-d3a6c70b2dd6bfa5b0dbd21a38987749a326899f.zip
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
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index bea54ca1444..ac1c18b49a7 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -3031,7 +3031,7 @@ void ModuleBitcodeWriter::writeBlockInfo() {
// We only want to emit block info records for blocks that have multiple
// instances: CONSTANTS_BLOCK, FUNCTION_BLOCK and VALUE_SYMTAB_BLOCK.
// Other blocks can define their abbrevs inline.
- Stream.EnterBlockInfoBlock(2);
+ Stream.EnterBlockInfoBlock();
{ // 8-bit fixed-width VST_CODE_ENTRY/VST_CODE_BBENTRY strings.
BitCodeAbbrev *Abbv = new BitCodeAbbrev();
OpenPOWER on IntegriCloud