aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-11-07 18:19:00 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-11-07 18:19:00 +0000
commit36eea80616ed97ff12209396fb7017e9f5d6ea69 (patch)
tree197e461e8d006b34e159b311a7aee0fa2ab54c6a
parent78d215b76d0eddc622f5dd1a4c26f3637bc3ab07 (diff)
downloadexternal_llvm-36eea80616ed97ff12209396fb7017e9f5d6ea69.zip
external_llvm-36eea80616ed97ff12209396fb7017e9f5d6ea69.tar.gz
external_llvm-36eea80616ed97ff12209396fb7017e9f5d6ea69.tar.bz2
Add comments per CL code review.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17578 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Bytecode/Reader/Reader.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Bytecode/Reader/Reader.h b/lib/Bytecode/Reader/Reader.h
index 49d8173..72a6040 100644
--- a/lib/Bytecode/Reader/Reader.h
+++ b/lib/Bytecode/Reader/Reader.h
@@ -67,6 +67,11 @@ public:
/// @brief The type used for a vector of potentially abstract types
typedef std::vector<PATypeHolder> TypeListTy;
+ /// This structure is only used when a bytecode file is compressed.
+ /// As bytecode is being decompressed, the memory buffer might need
+ /// to be reallocated. The buffer allocation is handled in a callback
+ /// and this structure is needed to retain information across calls
+ /// to the callback.
/// @brief An internal buffer object used for handling decompression
struct BufferInfo {
char* buff;
@@ -246,8 +251,7 @@ protected:
/// @name Data
/// @{
private:
- BufferInfo bi; ///< Buffer info for decompression
-
+ BufferInfo bi; ///< Buffer info for decompression
BufPtr MemStart; ///< Start of the memory buffer
BufPtr MemEnd; ///< End of the memory buffer
BufPtr BlockStart; ///< Start of current block being parsed