mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
Make this work on systems where size_t is not the same as unsigned.
llvm-svn: 19928
This commit is contained in:
parent
fc8d0e9460
commit
53173dac64
@ -36,6 +36,14 @@ static int getdata(char*& buffer, size_t &size,
|
||||
return result;
|
||||
}
|
||||
|
||||
static int getdata(char*& buffer, unsigned &size,
|
||||
llvm::Compressor::OutputDataCallback* cb, void* context) {
|
||||
size_t SizeOut;
|
||||
int Res = getdata(buffer, SizeOut, cb, context);
|
||||
size = SizeOut;
|
||||
return Res;
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//=== NULLCOMP - a compression like set of routines that just copies data
|
||||
//=== without doing any compression. This is provided so that if the
|
||||
|
Loading…
Reference in New Issue
Block a user