gallivm: Fix include for LLVMAddPromoteMemoryToRegisterPass
authorMike Lothian <mike@fireburn.co.uk>
Sun, 1 Apr 2018 00:32:22 +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/auxiliary/gallivm/lp_bld_init.c

index 6ddc509a813529f86a64428ee73c984c7d992d78..dae9d01552a26c6bd7cf45d798b10f3d158b1fe1 100644 (file)
@@ -40,6 +40,9 @@
 
 #include <llvm-c/Analysis.h>
 #include <llvm-c/Transforms/Scalar.h>
+#if HAVE_LLVM >= 0x0700
+#include <llvm-c/Transforms/Utils.h>
+#endif
 #include <llvm-c/BitWriter.h>