summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Compression.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Purge unused includes throughout libSupport.Benjamin Kramer2015-03-231-0/+1
| | | | | | NFC. llvm-svn: 232976
* [msan] Annotate zlib functions for MemorySanitizer.Evgeniy Stepanov2014-11-251-0/+6
| | | | | | | | | | | | | Mark destination buffer in zlib::compress and zlib::decompress as fully initialized. When building LLVM with system zlib and MemorySanitizer instrumentation, MSan does not observe memory writes in zlib code and erroneously considers zlib output buffers as uninitialized, resulting in false use-of-uninitialized memory reports. This change helps MSan understand the state of that memory and prevents such reports. llvm-svn: 222763
* Simplify compression API by compressing into a SmallVector rather than a ↵David Blaikie2014-04-051-12/+6
| | | | | | | | MemoryBuffer This is the other half of r205676. llvm-svn: 205677
* Simplify compression API by decompressing into a SmallVector rather than a ↵David Blaikie2014-04-051-11/+6
| | | | | | | | | | | | MemoryBuffer This avoids an extra copy during decompression and avoids the use of MemoryBuffer which is a weirdly esoteric device that includes unrelated concepts like "file name" (its rather generic name is a bit misleading). Similar refactoring of zlib::compress coming up. llvm-svn: 205676
* Replace OwningPtr<T> with std::unique_ptr<T>.Ahmed Charles2014-03-061-7/+6
| | | | | | | | | | This compiles with no changes to clang/lld/lldb with MSVC and includes overloads to various functions which are used by those projects and llvm which have OwningPtr's as parameters. This should allow out of tree projects some time to move. There are also no changes to libs/Target, which should help out of tree targets have time to move, if necessary. llvm-svn: 203083
* Expose CRC-32 implementation from zlibAlexey Samsonov2013-08-141-0/+7
| | | | llvm-svn: 188380
* Fixup for r180094: properly use MSan interface functionsAlexey Samsonov2013-04-231-2/+2
| | | | llvm-svn: 180103
* Tell MSan that memory initialized by libz is validAlexey Samsonov2013-04-231-2/+9
| | | | llvm-svn: 180094
* Add llvm_unreachable after fully covered switch to pacify GCCHans Wennborg2013-04-231-0/+1
| | | | llvm-svn: 180087
* Add more guards around zlib-dependent codeAlexey Samsonov2013-04-231-1/+1
| | | | llvm-svn: 180084
* Add basic zlib support to LLVM. This would allow to use ↵Alexey Samsonov2013-04-231-0/+89
compression/uncompression in selected LLVM tools. llvm-svn: 180083
OpenPOWER on IntegriCloud