r600: replace binary HAVE_LLVM checks with LLVM_AVAILABLE

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Acked-by: Michel Dänzer <mdaenzer@redhat.com>
This commit is contained in:
Eric Engestrom 2019-08-27 23:58:57 +01:00
parent 28cb16b6f8
commit cf7d186be6

View File

@ -39,11 +39,7 @@
#include <inttypes.h>
#include <sys/utsname.h>
#ifndef HAVE_LLVM
#define HAVE_LLVM 0
#endif
#if HAVE_LLVM
#ifdef LLVM_AVAILABLE
#include <llvm-c/TargetMachine.h>
#endif
@ -1202,7 +1198,7 @@ bool r600_common_screen_init(struct r600_common_screen *rscreen,
snprintf(rscreen->renderer_string, sizeof(rscreen->renderer_string),
"%s (%sDRM %i.%i.%i%s"
#if HAVE_LLVM > 0
#ifdef LLVM_AVAILABLE
", LLVM " MESA_LLVM_VERSION_STRING
#endif
")",