mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 23:57:48 +00:00
Adjust to Compressor interface change
llvm-svn: 18249
This commit is contained in:
parent
0fd67aa7c9
commit
d841d33637
@ -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;
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user