radeonsi: Fix include for LLVMAddPromoteMemoryToRegisterPass
authorMike Lothian <mike@fireburn.co.uk>
Sun, 1 Apr 2018 00:32:21 +0000 (01:32 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 2 Apr 2018 18:27:29 +0000 (14:27 -0400)
Include llvm-c/Transforms/Utils.h with the newest LLVM 7

Signed-of-by: Mike Lothian <mike@fireburn.co.uk>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c

index 79fdebe8388404155ffb73e415ee98a4a0e535f9..622fd26950997f949ded0aa79d9bd2d9fa739dff 100644 (file)
@@ -40,6 +40,9 @@
 #include <stdio.h>
 #include <llvm-c/Transforms/IPO.h>
 #include <llvm-c/Transforms/Scalar.h>
+#if HAVE_LLVM >= 0x0700
+#include <llvm-c/Transforms/Utils.h>
+#endif
 
 enum si_llvm_calling_convention {
        RADEON_LLVM_AMDGPU_VS = 87,