From: Fangrui Song Date: Wed, 13 Jul 2022 23:47:35 +0000 (-0700) Subject: [Support] Fix LLVM_ENABLE_ZLIB==0 builds X-Git-Tag: upstream/15.0.7~1764 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3923d000a6a0393bf6bd535b65433ed0de1ec28;p=platform%2Fupstream%2Fllvm.git [Support] Fix LLVM_ENABLE_ZLIB==0 builds --- diff --git a/llvm/lib/Support/Compression.cpp b/llvm/lib/Support/Compression.cpp index 83e310c..2119197 100644 --- a/llvm/lib/Support/Compression.cpp +++ b/llvm/lib/Support/Compression.cpp @@ -86,16 +86,16 @@ Error zlib::uncompress(ArrayRef Input, #else bool zlib::isAvailable() { return false; } -void zlib::compress(StringRef InputBuffer, - SmallVectorImpl &CompressedBuffer, int Level) { +void zlib::compress(ArrayRef Input, + SmallVectorImpl &CompressedBuffer, int Level) { llvm_unreachable("zlib::compress is unavailable"); } -Error zlib::uncompress(StringRef InputBuffer, char *UncompressedBuffer, +Error zlib::uncompress(ArrayRef Input, uint8_t *UncompressedBuffer, size_t &UncompressedSize) { llvm_unreachable("zlib::uncompress is unavailable"); } -Error zlib::uncompress(StringRef InputBuffer, - SmallVectorImpl &UncompressedBuffer, +Error zlib::uncompress(ArrayRef Input, + SmallVectorImpl &UncompressedBuffer, size_t UncompressedSize) { llvm_unreachable("zlib::uncompress is unavailable"); }