diff options
author | Mike Lothian <[email protected]> | 2018-04-04 09:22:54 +0100 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2018-04-19 00:39:04 -0700 |
commit | 79487c427ee2f82bc947ac1dffd6e2374efaa90f (patch) | |
tree | f3ef8df0a03c631863494311f22724aa0aab021c /src/gallium/drivers | |
parent | 2f63b3dd09cb516b83537504adf36a0227e3f874 (diff) |
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 <[email protected]>
Tested-by: Vinson Lee <[email protected]>
Reviewed-By: George Kyriazis <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
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" |