diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2016-11-01 01:18:57 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2016-11-01 01:18:57 +0000 |
commit | d3a6c70b2dd6bfa5b0dbd21a38987749a326899f (patch) | |
tree | 1eb86bd51516f3268e20ef1bfa28259b5291cf5c /clang/lib/Serialization/GlobalModuleIndex.cpp | |
parent | f3dd863031ddc75cab9abdf2d6dc21da58d1b622 (diff) | |
download | bcm5719-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 'clang/lib/Serialization/GlobalModuleIndex.cpp')
-rw-r--r-- | clang/lib/Serialization/GlobalModuleIndex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Serialization/GlobalModuleIndex.cpp b/clang/lib/Serialization/GlobalModuleIndex.cpp index 581e894d915..f75bc5260cc 100644 --- a/clang/lib/Serialization/GlobalModuleIndex.cpp +++ b/clang/lib/Serialization/GlobalModuleIndex.cpp @@ -460,7 +460,7 @@ static void emitRecordID(unsigned ID, const char *Name, void GlobalModuleIndexBuilder::emitBlockInfoBlock(llvm::BitstreamWriter &Stream) { SmallVector<uint64_t, 64> Record; - Stream.EnterSubblock(llvm::bitc::BLOCKINFO_BLOCK_ID, 3); + Stream.EnterBlockInfoBlock(); #define BLOCK(X) emitBlockID(X ## _ID, #X, Stream, Record) #define RECORD(X) emitRecordID(X, #X, Stream, Record) |