[llvm-commits] CVS: llvm/include/llvm/Support/Compressor.h

Chris Lattner lattner at cs.uiuc.edu
Sun May 14 12:07:21 PDT 2006



Changes in directory llvm/include/llvm/Support:

Compressor.h updated: 1.6 -> 1.7
---
Log message:

Improve documentation on throwing, it is not complete still though. :(


---
Diffs of the changes:  (+3 -0)

 Compressor.h |    3 +++
 1 files changed, 3 insertions(+)


Index: llvm/include/llvm/Support/Compressor.h
diff -u llvm/include/llvm/Support/Compressor.h:1.6 llvm/include/llvm/Support/Compressor.h:1.7
--- llvm/include/llvm/Support/Compressor.h:1.6	Thu Apr 21 15:44:59 2005
+++ llvm/include/llvm/Support/Compressor.h	Sun May 14 14:07:07 2006
@@ -57,6 +57,7 @@
       /// writing when this method is called. The stream will not be closed by
       /// this method.  The \p hint argument indicates which type of
       /// compression the caller would *prefer*.
+      /// @throws std::string explaining error if a compression error occurs
       /// @returns The amount of data written to \p out.
       /// @brief Compress memory to a file.
       static size_t compressToStream(
@@ -68,6 +69,7 @@
       /// This method decompresses a block of memory pointed to by \p in with
       /// size \p size to a new block of memory, \p out, \p that was allocated
       /// by malloc. It is the caller's responsibility to free \p out.
+      /// @throws std::string explaining error if a decompression error occurs
       /// @returns The size of the output buffer \p out.
       /// @brief Decompress memory to a new memory buffer.
       static size_t decompressToNewBuffer(
@@ -80,6 +82,7 @@
       /// size \p size to a stream. The stream \p out must be open and ready for
       /// writing when this method is called. The stream will not be closed by
       /// this method.
+      /// @throws std::string explaining error if a decompression error occurs
       /// @returns The amount of data written to \p out.
       /// @brief Decompress memory to a stream.
       static size_t decompressToStream(






More information about the llvm-commits mailing list