mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-03 02:17:41 +00:00
Adjust to Compressor interface change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18249 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
50b0421caa
commit
84472d6e3c
@ -262,8 +262,7 @@ Archive::writeMember(
|
|||||||
data +=4;
|
data +=4;
|
||||||
fSize -= 4;
|
fSize -= 4;
|
||||||
}
|
}
|
||||||
fSize = Compressor::compressToNewBuffer(
|
fSize = Compressor::compressToNewBuffer(data,fSize,output);
|
||||||
data,fSize,output,Compressor::COMP_TYPE_ZLIB);
|
|
||||||
data = output;
|
data = output;
|
||||||
if (member.isBytecode())
|
if (member.isBytecode())
|
||||||
hdrSize = -fSize-4;
|
hdrSize = -fSize-4;
|
||||||
|
@ -262,8 +262,7 @@ Archive::writeMember(
|
|||||||
data +=4;
|
data +=4;
|
||||||
fSize -= 4;
|
fSize -= 4;
|
||||||
}
|
}
|
||||||
fSize = Compressor::compressToNewBuffer(
|
fSize = Compressor::compressToNewBuffer(data,fSize,output);
|
||||||
data,fSize,output,Compressor::COMP_TYPE_ZLIB);
|
|
||||||
data = output;
|
data = output;
|
||||||
if (member.isBytecode())
|
if (member.isBytecode())
|
||||||
hdrSize = -fSize-4;
|
hdrSize = -fSize-4;
|
||||||
|
@ -1128,8 +1128,7 @@ void llvm::WriteBytecodeToFile(const Module *M, std::ostream &Out,
|
|||||||
uint64_t zipSize = Compressor::compressToStream(
|
uint64_t zipSize = Compressor::compressToStream(
|
||||||
(char*)(FirstByte+4), // Skip the magic number
|
(char*)(FirstByte+4), // Skip the magic number
|
||||||
Buffer.size()-4, // Skip the magic number
|
Buffer.size()-4, // Skip the magic number
|
||||||
Out, // Where to write compressed data
|
Out // Where to write compressed data
|
||||||
Compressor::COMP_TYPE_BZIP2 // Try bzip2 compression first
|
|
||||||
);
|
);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user