diff options
author | Cole Kissane <cole.kissane@gmail.com> | 2022-07-08 11:24:45 -0700 |
---|---|---|
committer | Cole Kissane <cole.kissane@gmail.com> | 2022-07-08 11:24:45 -0700 |
commit | 96063bfa908865fb102894f9f5afb58c627faf79 (patch) | |
tree | afeee9fc7fb00e1b817030af25022792e0cba171 /llvm/lib/Support/Compression.cpp | |
parent | 77d97be0aa0fdeb4537ed5fc90b756bd92605b7e (diff) | |
download | llvm-96063bfa908865fb102894f9f5afb58c627faf79.zip llvm-96063bfa908865fb102894f9f5afb58c627faf79.tar.gz llvm-96063bfa908865fb102894f9f5afb58c627faf79.tar.bz2 |
[llvm] Remove unused and redundant crc32 funcction from llvm::compression::zlib namespace
* Remove crc32 from zlib compression namespace, people should use the `llvm::crc32` instead.
Reviewed By: MaskRay, leonardchan
Differential Revision: https://reviews.llvm.org/D128754
Diffstat (limited to 'llvm/lib/Support/Compression.cpp')
-rw-r--r-- | llvm/lib/Support/Compression.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Support/Compression.cpp b/llvm/lib/Support/Compression.cpp index c1a64d5..00f88a3 100644 --- a/llvm/lib/Support/Compression.cpp +++ b/llvm/lib/Support/Compression.cpp @@ -83,10 +83,6 @@ Error zlib::uncompress(StringRef InputBuffer, return E; } -uint32_t zlib::crc32(StringRef Buffer) { - return ::crc32(0, (const Bytef *)Buffer.data(), Buffer.size()); -} - #else bool zlib::isAvailable() { return false; } void zlib::compress(StringRef InputBuffer, @@ -102,7 +98,4 @@ Error zlib::uncompress(StringRef InputBuffer, size_t UncompressedSize) { llvm_unreachable("zlib::uncompress is unavailable"); } -uint32_t zlib::crc32(StringRef Buffer) { - llvm_unreachable("zlib::crc32 is unavailable"); -} #endif |