[Mesa-dev] [PATCH] clover: Fix include of CodeGenOptions.h, upstream moved it in r348827
Kai Wasserbäch
kai at dev.carbon-project.org
Fri Dec 14 16:26:26 UTC 2018
Signed-off-by: Kai Wasserbäch <kai at dev.carbon-project.org>
---
src/gallium/state_trackers/clover/llvm/compat.hpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/gallium/state_trackers/clover/llvm/compat.hpp b/src/gallium/state_trackers/clover/llvm/compat.hpp
index 975012cbda..9c5b9d8917 100644
--- a/src/gallium/state_trackers/clover/llvm/compat.hpp
+++ b/src/gallium/state_trackers/clover/llvm/compat.hpp
@@ -58,7 +58,11 @@
#include <llvm/Analysis/TargetLibraryInfo.h>
#include <clang/Basic/TargetInfo.h>
+#if HAVE_LLVM >= 0x0800
+#include <clang/Basic/CodeGenOptions.h>
+#else
#include <clang/Frontend/CodeGenOptions.h>
+#endif
#include <clang/Frontend/CompilerInstance.h>
namespace clover {
--
2.19.2
More information about the mesa-dev
mailing list