diff options
author | Fangrui Song <i@maskray.me> | 2022-07-13 16:47:35 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-07-13 16:47:35 -0700 |
commit | e3923d000a6a0393bf6bd535b65433ed0de1ec28 (patch) | |
tree | 96ef15f1ebfc88887a6df25787deeced67a83e3f /llvm/lib/Support/Compression.cpp | |
parent | 36229fa3886be7d3c864642fad021c9fe4afda38 (diff) | |
download | llvm-e3923d000a6a0393bf6bd535b65433ed0de1ec28.zip llvm-e3923d000a6a0393bf6bd535b65433ed0de1ec28.tar.gz llvm-e3923d000a6a0393bf6bd535b65433ed0de1ec28.tar.bz2 |
[Support] Fix LLVM_ENABLE_ZLIB==0 builds
Diffstat (limited to 'llvm/lib/Support/Compression.cpp')
-rw-r--r-- | llvm/lib/Support/Compression.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<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"); } |