r600: replace binary HAVE_LLVM checks with LLVM_AVAILABLE
authorEric Engestrom <eric.engestrom@intel.com>
Tue, 27 Aug 2019 22:58:57 +0000 (23:58 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Fri, 6 Sep 2019 21:19:01 +0000 (22:19 +0100)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Acked-by: Michel Dänzer <mdaenzer@redhat.com>
src/gallium/drivers/r600/r600_pipe_common.c

index 60d113e75acf95d4fc9494337b29121cb47e4e95..e91356094ff36d5abbbf2826e1618bc7ef11db49 100644 (file)
 #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
                 ")",