llvm.org GIT mirror llvm / 2a5e354
minor cleanups git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36365 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 5 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
3131 // CurCodeSize - This is the declared size of code values used for the current
3232 // block, in bits.
3333 unsigned CurCodeSize;
34
34
35 /// CurAbbrevs - Abbrevs installed at in this block.
36 std::vector CurAbbrevs;
37
3538 struct Block {
3639 unsigned PrevCodeSize;
3740 unsigned StartSizeWord;
4245 /// BlockScope - This tracks the current blocks that we have entered.
4346 std::vector BlockScope;
4447
45 std::vector CurAbbrevs;
4648 public:
4749 BitstreamWriter(std::vector &O)
4850 : Out(O), CurBit(0), CurValue(0), CurCodeSize(2) {}
4951
5052 ~BitstreamWriter() {
5153 assert(CurBit == 0 && "Unflused data remaining");
52 assert(BlockScope.empty() && "Block imbalance");
54 assert(BlockScope.empty() && CurAbbrevs.empty() && "Block imbalance");
5355 }
5456 //===--------------------------------------------------------------------===//
5557 // Basic Primitives for emitting bits to the stream.