[llvm-commits] CVS: llvm/include/llvm/Bitcode/BitstreamReader.h
Chris Lattner
sabre at nondot.org
Sun Apr 29 12:17:54 PDT 2007
Changes in directory llvm/include/llvm/Bitcode:
BitstreamReader.h updated: 1.6 -> 1.7
---
Log message:
add a method
---
Diffs of the changes: (+6 -0)
BitstreamReader.h | 6 ++++++
1 files changed, 6 insertions(+)
Index: llvm/include/llvm/Bitcode/BitstreamReader.h
diff -u llvm/include/llvm/Bitcode/BitstreamReader.h:1.6 llvm/include/llvm/Bitcode/BitstreamReader.h:1.7
--- llvm/include/llvm/Bitcode/BitstreamReader.h:1.6 Sun Apr 29 03:05:07 2007
+++ llvm/include/llvm/Bitcode/BitstreamReader.h Sun Apr 29 14:17:32 2007
@@ -72,6 +72,12 @@
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) {
More information about the llvm-commits
mailing list