mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
Add more guards around zlib-dependent code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180084 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ee03c949b8
commit
a0bd5df086
@ -230,6 +230,9 @@
|
|||||||
/* Define to 1 if you have the `udis86' library (-ludis86). */
|
/* Define to 1 if you have the `udis86' library (-ludis86). */
|
||||||
#undef HAVE_LIBUDIS86
|
#undef HAVE_LIBUDIS86
|
||||||
|
|
||||||
|
/* Define to 1 if you have the 'z' library (-lz). */
|
||||||
|
#cmakedefine HAVE_LIBZ ${HAVE_LIBZ}
|
||||||
|
|
||||||
/* Define to 1 if you have the <limits.h> header file. */
|
/* Define to 1 if you have the <limits.h> header file. */
|
||||||
#cmakedefine HAVE_LIMITS_H ${HAVE_LIMITS_H}
|
#cmakedefine HAVE_LIMITS_H ${HAVE_LIMITS_H}
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
#if LLVM_ENABLE_ZLIB == 1
|
#if LLVM_ENABLE_ZLIB == 1 && HAVE_LIBZ
|
||||||
static int encodeZlibCompressionLevel(zlib::CompressionLevel Level) {
|
static int encodeZlibCompressionLevel(zlib::CompressionLevel Level) {
|
||||||
switch (Level) {
|
switch (Level) {
|
||||||
case zlib::NoCompression: return 0;
|
case zlib::NoCompression: return 0;
|
||||||
|
@ -22,7 +22,7 @@ using namespace llvm;
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
#if LLVM_ENABLE_ZLIB == 1
|
#if LLVM_ENABLE_ZLIB == 1 && HAVE_LIBZ
|
||||||
|
|
||||||
void TestZlibCompression(StringRef Input, zlib::CompressionLevel Level) {
|
void TestZlibCompression(StringRef Input, zlib::CompressionLevel Level) {
|
||||||
OwningPtr<MemoryBuffer> Compressed;
|
OwningPtr<MemoryBuffer> Compressed;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user