[llvm] e3923d0 - [Support] Fix LLVM_ENABLE_ZLIB==0 builds

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 13 16:47:39 PDT 2022


Author: Fangrui Song
Date: 2022-07-13T16:47:35-07:00
New Revision: e3923d000a6a0393bf6bd535b65433ed0de1ec28

URL: https://github.com/llvm/llvm-project/commit/e3923d000a6a0393bf6bd535b65433ed0de1ec28
DIFF: https://github.com/llvm/llvm-project/commit/e3923d000a6a0393bf6bd535b65433ed0de1ec28.diff

LOG: [Support] Fix LLVM_ENABLE_ZLIB==0 builds

Added: 
    

Modified: 
    llvm/lib/Support/Compression.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/Compression.cpp b/llvm/lib/Support/Compression.cpp
index 83e310c6710c..21191972fb8b 100644
--- a/llvm/lib/Support/Compression.cpp
+++ b/llvm/lib/Support/Compression.cpp
@@ -86,16 +86,16 @@ Error zlib::uncompress(ArrayRef<uint8_t> Input,
 
 #else
 bool zlib::isAvailable() { return false; }
-void zlib::compress(StringRef InputBuffer,
-                    SmallVectorImpl<char> &CompressedBuffer, int Level) {
+void zlib::compress(ArrayRef<uint8_t> Input,
+                    SmallVectorImpl<uint8_t> &CompressedBuffer, int Level) {
   llvm_unreachable("zlib::compress is unavailable");
 }
-Error zlib::uncompress(StringRef InputBuffer, char *UncompressedBuffer,
+Error zlib::uncompress(ArrayRef<uint8_t> Input, uint8_t *UncompressedBuffer,
                        size_t &UncompressedSize) {
   llvm_unreachable("zlib::uncompress is unavailable");
 }
-Error zlib::uncompress(StringRef InputBuffer,
-                       SmallVectorImpl<char> &UncompressedBuffer,
+Error zlib::uncompress(ArrayRef<uint8_t> Input,
+                       SmallVectorImpl<uint8_t> &UncompressedBuffer,
                        size_t UncompressedSize) {
   llvm_unreachable("zlib::uncompress is unavailable");
 }


        


More information about the llvm-commits mailing list