summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/clover/llvm
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2019-08-06 12:24:18 -0400
committerJan Vesely <jan.vesely@rutgers.edu>2019-08-06 23:33:55 -0400
commit6b8269d0bbded7a42cd2de2b50d077cf12157d15 (patch)
tree7c101274c6e70ff16a82f31d60909560a10f1b7b /src/gallium/state_trackers/clover/llvm
parentd81e11332b20cc469449dd5311163895200ed8f2 (diff)
clover: Fix build after clang r367864
v2: Drop special case of llvm-9 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Acked-by: Dieter Nützel <Dieter@nuetzel-hh.de> Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de> Reviewed-by: Aaron Watry <awatry@gmail.com>
Diffstat (limited to 'src/gallium/state_trackers/clover/llvm')
-rw-r--r--src/gallium/state_trackers/clover/llvm/compat.hpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/clover/llvm/compat.hpp b/src/gallium/state_trackers/clover/llvm/compat.hpp
index 0ecf622a9af..b040902fcfe 100644
--- a/src/gallium/state_trackers/clover/llvm/compat.hpp
+++ b/src/gallium/state_trackers/clover/llvm/compat.hpp
@@ -79,11 +79,17 @@ namespace clover {
#endif
}
-#if HAVE_LLVM >= 0x0500
+#if HAVE_LLVM >= 0x1000
+ const clang::InputKind ik_opencl = clang::Language::OpenCL;
+#elif HAVE_LLVM >= 0x0500
const clang::InputKind ik_opencl = clang::InputKind::OpenCL;
- const clang::LangStandard::Kind lang_opencl10 = clang::LangStandard::lang_opencl10;
#else
const clang::InputKind ik_opencl = clang::IK_OpenCL;
+#endif
+
+#if HAVE_LLVM >= 0x0500
+ const clang::LangStandard::Kind lang_opencl10 = clang::LangStandard::lang_opencl10;
+#else
const clang::LangStandard::Kind lang_opencl10 = clang::LangStandard::lang_opencl;
#endif