diff options
| author | Rui Ueyama <ruiu@google.com> | 2018-08-04 00:13:13 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2018-08-04 00:13:13 +0000 |
| commit | 2c97adc1a7d601f416898f8370dce484d16705db (patch) | |
| tree | 868da29e281b0cff281b56a45272e550a67a3b0b /llvm/unittests/Support/CompressionTest.cpp | |
| parent | 47e2b6b29eae57267b5c966eb7d02dc8eae0caaf (diff) | |
| download | bcm5719-llvm-2c97adc1a7d601f416898f8370dce484d16705db.tar.gz bcm5719-llvm-2c97adc1a7d601f416898f8370dce484d16705db.zip | |
Use the same constants as zlib to represent compression level.
This change allows users pass compression level that was not listed
in the enum. Also, I think using different values than zlib's
compression levels was just confusing.
Differential Revision: https://reviews.llvm.org/D50196
llvm-svn: 338939
Diffstat (limited to 'llvm/unittests/Support/CompressionTest.cpp')
| -rw-r--r-- | llvm/unittests/Support/CompressionTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/CompressionTest.cpp b/llvm/unittests/Support/CompressionTest.cpp index 505714bd2da..e9f36c5eebd 100644 --- a/llvm/unittests/Support/CompressionTest.cpp +++ b/llvm/unittests/Support/CompressionTest.cpp @@ -24,7 +24,7 @@ namespace { #if LLVM_ENABLE_ZLIB == 1 && HAVE_LIBZ -void TestZlibCompression(StringRef Input, zlib::CompressionLevel Level) { +void TestZlibCompression(StringRef Input, int Level) { SmallString<32> Compressed; SmallString<32> Uncompressed; |

