1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00

add a method

llvm-svn: 36571
This commit is contained in:
Chris Lattner 2007-04-29 19:17:32 +00:00
parent fae605a17e
commit d61ccde429

View File

@ -72,6 +72,12 @@ public:
bool AtEndOfStream() const { return NextChar == LastChar; }
/// GetCurrentBitNo - Return the bit # of the bit we are reading.
uint64_t GetCurrentBitNo() const {
return CurWord * 32ULL + (32-CurCodeSize);
}
uint32_t Read(unsigned NumBits) {
// If the field is fully contained by CurWord, return it quickly.
if (BitsInCurWord >= NumBits) {