Simplify compression API by decompressing into a SmallVector rather than a MemoryBuffer
authorDavid Blaikie <dblaikie@gmail.com>
Sat, 5 Apr 2014 21:26:44 +0000 (21:26 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sat, 5 Apr 2014 21:26:44 +0000 (21:26 +0000)
commitb206103abcf358453ac4ed8d4373f44f4c88e5c0
tree7cea7cb470eedc4aafa8579122e25dc4a0e0357d
parent48ee81c6798a415bc592255f385bdb8427b9ebcf
Simplify compression API by decompressing into a SmallVector rather than a 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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205676 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Compression.h
lib/DebugInfo/DWARFContext.cpp
lib/DebugInfo/DWARFContext.h
lib/Support/Compression.cpp
unittests/Support/CompressionTest.cpp