clover: fix building since llvm r286566
authorLaurent Carlier <lordheavym@gmail.com>
Fri, 11 Nov 2016 13:00:26 +0000 (14:00 +0100)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 11 Nov 2016 19:45:22 +0000 (19:45 +0000)
pretty trivial fix

src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp

index 108f8d54e9e5bdad300d7c545a5a937aa41dcee3..8e89a49a9c0a46bd835dca7e908d57199d9a9e53 100644 (file)
 #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;