mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
swr/rast: Fix include for createInstructionCombiningPass with llvm-7.0.
Fix build error after llvm-7.0.0svn r330669 ("InstCombine: Fix layering
by not including Scalar.h in InstCombine").
CXX rasterizer/jitter/libmesaswr_la-blend_jit.lo
rasterizer/jitter/blend_jit.cpp:816:20: error: use of undeclared identifier 'createInstructionCombiningPass'; did you mean 'createInstructionSimplifierPass'?
passes.add(createInstructionCombiningPass());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
createInstructionSimplifierPass
Suggested-by: George Kyriazis <george.kyriazis@intel.com>
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-By: George Kyriazis <george.kyriazis@intel.com>
This commit is contained in:
parent
2f1ad72ac1
commit
cd5319a64f
1 changed files with 1 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ using PassManager = llvm::legacy::PassManager;
|
|||
#include "llvm/Transforms/Scalar.h"
|
||||
#if LLVM_VERSION_MAJOR >= 7
|
||||
#include "llvm/Transforms/Utils.h"
|
||||
#include "llvm/Transforms/InstCombine/InstCombine.h"
|
||||
#endif
|
||||
#include "llvm/Support/Host.h"
|
||||
#include "llvm/Support/DynamicLibrary.h"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue