projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d81d88
)
add a method
author
Chris Lattner
<sabre@nondot.org>
Sun, 29 Apr 2007 19:17:32 +0000
(19:17 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 29 Apr 2007 19:17:32 +0000
(19:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36571
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Bitcode/BitstreamReader.h
patch
|
blob
|
history
diff --git
a/include/llvm/Bitcode/BitstreamReader.h
b/include/llvm/Bitcode/BitstreamReader.h
index 550459e15f36cb4ae9819aed8cd7d20447815911..f41c4f0ec3b91ef3b31ffc4efa2dcc3f27ea2a90 100644
(file)
--- a/
include/llvm/Bitcode/BitstreamReader.h
+++ b/
include/llvm/Bitcode/BitstreamReader.h
@@
-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) {