diff options
author | Chris Lattner <sabre@nondot.org> | 2007-04-23 18:57:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-04-23 18:57:32 +0000 |
commit | 49ca73d7bca459af181ee09147aafd169400c4ad (patch) | |
tree | 3ffc62bcf7b37e796f4a2418fc11b00965f84591 /llvm | |
parent | 9dd74dbe15ff591d238de6e3bfd2f16bf8cea0f2 (diff) | |
download | bcm5719-llvm-49ca73d7bca459af181ee09147aafd169400c4ad.tar.gz bcm5719-llvm-49ca73d7bca459af181ee09147aafd169400c4ad.zip |
minor cleanups
llvm-svn: 36365
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/Bitcode/BitstreamWriter.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/include/llvm/Bitcode/BitstreamWriter.h b/llvm/include/llvm/Bitcode/BitstreamWriter.h index 61208724bf8..aa2a653e532 100644 --- a/llvm/include/llvm/Bitcode/BitstreamWriter.h +++ b/llvm/include/llvm/Bitcode/BitstreamWriter.h @@ -32,7 +32,10 @@ class BitstreamWriter { // CurCodeSize - This is the declared size of code values used for the current // block, in bits. unsigned CurCodeSize; - + + /// CurAbbrevs - Abbrevs installed at in this block. + std::vector<BitCodeAbbrev*> CurAbbrevs; + struct Block { unsigned PrevCodeSize; unsigned StartSizeWord; @@ -43,14 +46,13 @@ class BitstreamWriter { /// BlockScope - This tracks the current blocks that we have entered. std::vector<Block> BlockScope; - std::vector<BitCodeAbbrev*> CurAbbrevs; public: BitstreamWriter(std::vector<unsigned char> &O) : Out(O), CurBit(0), CurValue(0), CurCodeSize(2) {} ~BitstreamWriter() { assert(CurBit == 0 && "Unflused data remaining"); - assert(BlockScope.empty() && "Block imbalance"); + assert(BlockScope.empty() && CurAbbrevs.empty() && "Block imbalance"); } //===--------------------------------------------------------------------===// // Basic Primitives for emitting bits to the stream. |