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:
7beb1ec
)
Add BitstreamWriter::GetCurrentBitNo, to report where we are in the output bitstream
author
Douglas Gregor
<dgregor@apple.com>
Wed, 8 Apr 2009 15:18:21 +0000
(15:18 +0000)
committer
Douglas Gregor
<dgregor@apple.com>
Wed, 8 Apr 2009 15:18:21 +0000
(15:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68610
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Bitcode/BitstreamWriter.h
patch
|
blob
|
history
diff --git
a/include/llvm/Bitcode/BitstreamWriter.h
b/include/llvm/Bitcode/BitstreamWriter.h
index 78b4f5e02cae454ee7ae322741bb485b70e39083..49fce1fcc81bcc822b7e98c80338e3fbc224ff57 100644
(file)
--- a/
include/llvm/Bitcode/BitstreamWriter.h
+++ b/
include/llvm/Bitcode/BitstreamWriter.h
@@
-79,6
+79,9
@@
public:
std::vector<unsigned char> &getBuffer() { return Out; }
+ /// \brief Retrieve the current position in the stream, in bits.
+ uint64_t GetCurrentBitNo() const { return Out.size() * CHAR_BIT + CurBit; }
+
//===--------------------------------------------------------------------===//
// Basic Primitives for emitting bits to the stream.
//===--------------------------------------------------------------------===//