From: Mike Lothian Date: Wed, 4 Apr 2018 08:22:54 +0000 (+0100) Subject: swr: Fix include for createPromoteMemoryToRegisterPass X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=79487c427ee2f82bc947ac1dffd6e2374efaa90f;p=mesa.git swr: Fix include for createPromoteMemoryToRegisterPass 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 Tested-by: Vinson Lee Reviewed-By: George Kyriazis --- diff --git a/src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp b/src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp index b1d60765e50..216938fa7b0 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp +++ b/src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp @@ -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"