summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit238cf920005e785bb1c5925e65d8f042841e39de (patch)
tree55ac7a74bc387dfe6ef3ceea28a93e15326dec27 /llvm/lib/Support/Compressor.cpp
parentfdec565f1f17c31e1230c35d551d1f4641db8e67 (diff)
downloadbcm5719-llvm-238cf920005e785bb1c5925e65d8f042841e39de.tar.gz
bcm5719-llvm-238cf920005e785bb1c5925e65d8f042841e39de.zip
Make this work on systems where size_t is not the same as unsigned.
llvm-svn: 19928
Diffstat (limited to 'llvm/lib/Support/Compressor.cpp')
-rw-r--r--llvm/lib/Support/Compressor.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Support/Compressor.cpp b/llvm/lib/Support/Compressor.cpp
index 1d8e57e348b..8d13e746694 100644
--- a/llvm/lib/Support/Compressor.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud