aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/Compressor.cpp
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2005-01-29 23:08:01 +0000
committerTanya Lattner <tonic@nondot.org>2005-01-29 23:08:01 +0000
commit445cdd3aad9dd5161f693b78480499f6bd8219ec (patch)
treebbf1edb7f1561c80758db1c8218f64a4d58838a1 /lib/Support/Compressor.cpp
parentea622d53e2dca5f85cb605a993a8d05e7529067a (diff)
Make this work on systems where size_t is not the same as unsigned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19928 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Compressor.cpp')
-rw-r--r--lib/Support/Compressor.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Support/Compressor.cpp b/lib/Support/Compressor.cpp
index 1d8e57e348..8d13e74669 100644
--- a/lib/Support/Compressor.cpp
+++ b/lib/Support/Compressor.cpp
@@ -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