Prefer lzfse if it is an available compression method (this was

defaulting to zlib previously).
<rdar://problem/30159130> 

llvm-svn: 292884
This commit is contained in:
Jason Molenda 2017-01-24 05:06:14 +00:00
parent d5fd7d7ea1
commit 73039d2cac
1 changed files with 3 additions and 3 deletions

View File

@ -607,10 +607,10 @@ bool GDBRemoteCommunication::DecompressPacket() {
m_compression_type == CompressionType::LZFSE || m_compression_type == CompressionType::LZFSE ||
m_compression_type == CompressionType::LZ4)) { m_compression_type == CompressionType::LZ4)) {
compression_algorithm compression_type; compression_algorithm compression_type;
if (m_compression_type == CompressionType::ZlibDeflate) if (m_compression_type == CompressionType::LZFSE)
compression_type = COMPRESSION_ZLIB;
else if (m_compression_type == CompressionType::LZFSE)
compression_type = COMPRESSION_LZFSE; compression_type = COMPRESSION_LZFSE;
else if (m_compression_type == CompressionType::ZlibDeflate)
compression_type = COMPRESSION_ZLIB;
else if (m_compression_type == CompressionType::LZ4) else if (m_compression_type == CompressionType::LZ4)
compression_type = COMPRESSION_LZ4_RAW; compression_type = COMPRESSION_LZ4_RAW;
else if (m_compression_type == CompressionType::LZMA) else if (m_compression_type == CompressionType::LZMA)