swr: Fix include for createPromoteMemoryToRegisterPass
authorMike Lothian <mike@fireburn.co.uk>
Wed, 4 Apr 2018 08:22:54 +0000 (09:22 +0100)
committerVinson Lee <vlee@freedesktop.org>
Thu, 19 Apr 2018 07:39:04 +0000 (00:39 -0700)
Include llvm/Transforms/Utils.h with the newest LLVM 7

v2: Include with " " rather than < > (Vinson Lee)

v3: Use LLVM_VERSION_MAJOR rather than HAVE_LLVM (George Kyriazis)

Signed-of-by: Mike Lothian <mike@fireburn.co.uk>
Tested-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-By: George Kyriazis <george.kyriazis@intel.com>
src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp

index b1d60765e50448431ded6096654ec03ebb3702ac..216938fa7b0748276d6b7b348efe432bb98e22a6 100644 (file)
@@ -67,6 +67,9 @@ using PassManager = llvm::legacy::PassManager;
 #include "llvm/Support/DynamicLibrary.h"
 #include "llvm/Transforms/IPO.h"
 #include "llvm/Transforms/Scalar.h"
+#if LLVM_VERSION_MAJOR >= 7
+#include "llvm/Transforms/Utils.h"
+#endif
 #include "llvm/Support/Host.h"
 #include "llvm/Support/DynamicLibrary.h"