diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-04-05 21:53:04 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-04-05 21:53:04 +0000 |
commit | b4074c010bc3d6c9a7323fabf68578b7b900a8a5 (patch) | |
tree | e64638f74295a4c9bf2dd066889c3e5bf1af04c8 /include/llvm | |
parent | b206103abcf358453ac4ed8d4373f44f4c88e5c0 (diff) | |
download | llvm-b4074c010bc3d6c9a7323fabf68578b7b900a8a5.tar.gz llvm-b4074c010bc3d6c9a7323fabf68578b7b900a8a5.tar.bz2 llvm-b4074c010bc3d6c9a7323fabf68578b7b900a8a5.tar.xz |
Simplify compression API by compressing into a SmallVector rather than a MemoryBuffer
This is the other half of r205676.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Support/Compression.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/llvm/Support/Compression.h b/include/llvm/Support/Compression.h index 2629809286..8152b60eb0 100644 --- a/include/llvm/Support/Compression.h +++ b/include/llvm/Support/Compression.h @@ -20,7 +20,6 @@ namespace llvm { -class MemoryBuffer; class StringRef; namespace zlib { @@ -43,8 +42,7 @@ enum Status { bool isAvailable(); -Status compress(StringRef InputBuffer, - std::unique_ptr<MemoryBuffer> &CompressedBuffer, +Status compress(StringRef InputBuffer, SmallVectorImpl<char> &CompressedBuffer, CompressionLevel Level = DefaultCompression); Status uncompress(StringRef InputBuffer, |