gallium/gallivm: remove unused header include for newer LLVM
authorJan Zielinski <jan.zielinski@intel.com>
Mon, 27 Apr 2020 11:34:59 +0000 (13:34 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 27 Apr 2020 16:53:44 +0000 (16:53 +0000)
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 <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4748>

src/gallium/auxiliary/gallivm/lp_bld_misc.cpp

index 40cc96824f3e565bcdf32372f528218188a2ba57..df7196190c5ea03de5c9d372fd74ea83c9e7400b 100644 (file)
@@ -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>