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:
parent
fae605a17e
commit
d61ccde429
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user