From 74941239d8efc90cea1d2fe5fc61183b53b76f1c Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 12 Sep 2016 13:00:51 +0000 Subject: Define a dummy zlib::uncompress when zlib is not available. Should fix link errors in some bots when it is used. llvm-svn: 281208 --- llvm/lib/Support/Compression.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/lib/Support/Compression.cpp') diff --git a/llvm/lib/Support/Compression.cpp b/llvm/lib/Support/Compression.cpp index 7453071f1df..5d556462e89 100644 --- a/llvm/lib/Support/Compression.cpp +++ b/llvm/lib/Support/Compression.cpp @@ -94,6 +94,10 @@ zlib::Status zlib::compress(StringRef InputBuffer, 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 &UncompressedBuffer, size_t UncompressedSize) { -- cgit v1.2.3