[Mesa-dev] [PATCH] clover: fix building since llvm r286566
Laurent Carlier
lordheavym at gmail.com
Fri Nov 11 13:00:26 UTC 2016
pretty trivial fix
---
src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp b/src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp
index 108f8d5..8e89a49 100644
--- a/src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp
+++ b/src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp
@@ -37,7 +37,12 @@
#include "util/algorithm.hpp"
#include <map>
+#if HAVE_LLVM < 0x0400
#include <llvm/Bitcode/ReaderWriter.h>
+#else
+#include <llvm/Bitcode/BitcodeReader.h>
+#include <llvm/Bitcode/BitcodeWriter.h>
+#endif
#include <llvm/Support/raw_ostream.h>
using namespace clover;
--
2.10.2
More information about the mesa-dev
mailing list