summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-02-23 13:35:03 +1100
committerTimothy Arceri <[email protected]>2017-02-23 14:05:55 +1100
commit4711e5433662ceb80ba62ae949934c6019dc1b17 (patch)
tree6a9c3b87965e0596a336ad7963a5d2321849cae6
parentfb26e6c0d4f1fb47c028bc11a059ac5db57ae5db (diff)
radeon: fix r600 builds when old version of llvm is present
Reviewed-by: Edward O'Callaghan <[email protected]>
-rw-r--r--src/gallium/drivers/radeon/r600_pipe_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c
index bae6d6fb3da..9a514e34b3f 100644
--- a/src/gallium/drivers/radeon/r600_pipe_common.c
+++ b/src/gallium/drivers/radeon/r600_pipe_common.c
@@ -43,7 +43,7 @@
#define HAVE_LLVM 0
#endif
-#if HAVE_LLVM
+#if HAVE_LLVM >= 0x0306
#include <llvm-c/TargetMachine.h>
#endif
@@ -793,7 +793,7 @@ static void r600_disk_cache_create(struct r600_common_screen *rscreen)
if (rscreen->chip_class < SI) {
res = asprintf(&timestamp_str, "%u",mesa_timestamp);
}
-#if HAVE_LLVM
+#if HAVE_LLVM >= 0x0306
else {
uint32_t llvm_timestamp;
if (disk_cache_get_function_timestamp(LLVMInitializeAMDGPUTargetInfo,