Mesa (master): gallium/gallivm: remove unused header include for newer LLVM
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Apr 27 17:10:57 UTC 2020
Module: Mesa
Branch: master
Commit: 52aa730d07618513d6c055618069b2f4680974cc
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=52aa730d07618513d6c055618069b2f4680974cc
Author: Jan Zielinski <jan.zielinski at intel.com>
Date: Mon Apr 27 13:34:59 2020 +0200
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 <sroland at vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4748>
---
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 2 ++
1 file changed, 2 insertions(+)
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>
More information about the mesa-commit
mailing list