#define HAVE_LLVM 0
#endif
-#if HAVE_LLVM
+#if HAVE_LLVM >= 0x0306
#include <llvm-c/TargetMachine.h>
#endif
if (rscreen->chip_class < SI) {
res = asprintf(×tamp_str, "%u",mesa_timestamp);
}
-#if HAVE_LLVM
+#if HAVE_LLVM >= 0x0306
else {
uint32_t llvm_timestamp;
if (disk_cache_get_function_timestamp(LLVMInitializeAMDGPUTargetInfo,