llvm.org GIT mirror llvm / bd40a6d
add a method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36571 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
7070 }
7171
7272 bool AtEndOfStream() const { return NextChar == LastChar; }
73
74 /// GetCurrentBitNo - Return the bit # of the bit we are reading.
75 uint64_t GetCurrentBitNo() const {
76 return CurWord * 32ULL + (32-CurCodeSize);
77 }
78
7379
7480 uint32_t Read(unsigned NumBits) {
7581 // If the field is fully contained by CurWord, return it quickly.