diff --git a/lib/Archive/ArchiveWriter.cpp b/lib/Archive/ArchiveWriter.cpp index 8651e95391f..21be628452a 100644 --- a/lib/Archive/ArchiveWriter.cpp +++ b/lib/Archive/ArchiveWriter.cpp @@ -262,8 +262,7 @@ Archive::writeMember( data +=4; fSize -= 4; } - fSize = Compressor::compressToNewBuffer( - data,fSize,output,Compressor::COMP_TYPE_ZLIB); + fSize = Compressor::compressToNewBuffer(data,fSize,output); data = output; if (member.isBytecode()) hdrSize = -fSize-4; diff --git a/lib/Bytecode/Archive/ArchiveWriter.cpp b/lib/Bytecode/Archive/ArchiveWriter.cpp index 8651e95391f..21be628452a 100644 --- a/lib/Bytecode/Archive/ArchiveWriter.cpp +++ b/lib/Bytecode/Archive/ArchiveWriter.cpp @@ -262,8 +262,7 @@ Archive::writeMember( data +=4; fSize -= 4; } - fSize = Compressor::compressToNewBuffer( - data,fSize,output,Compressor::COMP_TYPE_ZLIB); + fSize = Compressor::compressToNewBuffer(data,fSize,output); data = output; if (member.isBytecode()) hdrSize = -fSize-4; diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp index ed43bc9e2e8..b54a513b72d 100644 --- a/lib/Bytecode/Writer/Writer.cpp +++ b/lib/Bytecode/Writer/Writer.cpp @@ -1128,8 +1128,7 @@ void llvm::WriteBytecodeToFile(const Module *M, std::ostream &Out, uint64_t zipSize = Compressor::compressToStream( (char*)(FirstByte+4), // Skip the magic number Buffer.size()-4, // Skip the magic number - Out, // Where to write compressed data - Compressor::COMP_TYPE_BZIP2 // Try bzip2 compression first + Out // Where to write compressed data ); } else {