summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorLaurent Carlier <[email protected]>2016-11-11 14:00:26 +0100
committerTom Stellard <[email protected]>2016-11-11 19:45:22 +0000
commit3ff9f8c5328310a463d3f16f573b68aa20ab8339 (patch)
tree339e9b08653eccbc2bb9ac42318b567218b52f0b /src/gallium
parent6ff948ece11042476acbdf218f60ce7c03a147c5 (diff)
clover: fix building since llvm r286566
pretty trivial fix
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp b/src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp
index 108f8d54e9e..8e89a49a9c0 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;