[llvm] r281208 - Define a dummy zlib::uncompress when zlib is not available.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 12 06:00:52 PDT 2016
Author: rafael
Date: Mon Sep 12 08:00:51 2016
New Revision: 281208
URL: http://llvm.org/viewvc/llvm-project?rev=281208&view=rev
Log:
Define a dummy zlib::uncompress when zlib is not available.
Should fix link errors in some bots when it is used.
Modified:
llvm/trunk/lib/Support/Compression.cpp
Modified: llvm/trunk/lib/Support/Compression.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Compression.cpp?rev=281208&r1=281207&r2=281208&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Compression.cpp (original)
+++ llvm/trunk/lib/Support/Compression.cpp Mon Sep 12 08:00:51 2016
@@ -94,6 +94,10 @@ zlib::Status zlib::compress(StringRef In
CompressionLevel Level) {
return zlib::StatusUnsupported;
}
+zlib::Status zlib::uncompress(StringRef InputBuffer, char *UncompressedBuffer,
+ size_t &UncompressedSize) {
+ return zlib::StatusUnsupported;
+}
zlib::Status zlib::uncompress(StringRef InputBuffer,
SmallVectorImpl<char> &UncompressedBuffer,
size_t UncompressedSize) {
More information about the llvm-commits
mailing list