aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorJan Zielinski <[email protected]>2020-04-27 13:34:59 +0200
committerMarge Bot <[email protected]>2020-04-27 16:53:44 +0000
commit52aa730d07618513d6c055618069b2f4680974cc (patch)
treeb2327845c4a9dfcd6daa41f685f06687c4ddea37 /src/gallium
parente2a7436dd10df70ba14d18ab7cf8ad538f80e653 (diff)
gallium/gallivm: remove unused header include for newer LLVM
In the top of the trunk LLVM (11) llvm/IR/CallSite.h header has been removed. The file compiles without this include also for LLVM 8, but I'm not sure about 9, 10, and older versions so I disable it only for the latest LLVM Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4748>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_misc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
index 40cc96824f3..df7196190c5 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
@@ -65,7 +65,9 @@
#include <llvm/Support/TargetSelect.h>
+#if LLVM_VERSION_MAJOR < 11
#include <llvm/IR/CallSite.h>
+#endif
#include <llvm/IR/IRBuilder.h>
#include <llvm/IR/Module.h>
#include <llvm/Support/CBindingWrapping.h>