Add BitstreamWriter::GetCurrentBitNo, to report where we are in the output bitstream

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68610 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Douglas Gregor 2009-04-08 15:18:21 +00:00
parent 7beb1ec298
commit b7e7886c79

View File

@ -79,6 +79,9 @@ public:
std::vector<unsigned char> &getBuffer() { return Out; }
/// \brief Retrieve the current position in the stream, in bits.
uint64_t GetCurrentBitNo() const { return Out.size() * CHAR_BIT + CurBit; }
//===--------------------------------------------------------------------===//
// Basic Primitives for emitting bits to the stream.
//===--------------------------------------------------------------------===//