[llvm-commits] CVS: llvm/lib/Support/Compressor.cpp
Tanya Brethour
tbrethou at cs.uiuc.edu
Sat Jan 29 15:08:16 PST 2005
Changes in directory llvm/lib/Support:
Compressor.cpp updated: 1.13 -> 1.14
---
Log message:
Make this work on systems where size_t is not the same as unsigned.
---
Diffs of the changes: (+8 -0)
Compressor.cpp | 8 ++++++++
1 files changed, 8 insertions(+)
Index: llvm/lib/Support/Compressor.cpp
diff -u llvm/lib/Support/Compressor.cpp:1.13 llvm/lib/Support/Compressor.cpp:1.14
--- llvm/lib/Support/Compressor.cpp:1.13 Sat Jan 29 11:17:18 2005
+++ llvm/lib/Support/Compressor.cpp Sat Jan 29 17:08:01 2005
@@ -36,6 +36,14 @@
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
More information about the llvm-commits
mailing list