summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2014-03-07 10:49:30 +0900
committerMichel Dänzer <[email protected]>2014-03-07 11:12:12 +0900
commit9ceee5f4be09702fc881c922b5ad489cd03c76f8 (patch)
tree5225c818a57ea61a432b807611a0367c7a68ab29 /src/gallium/state_trackers
parent0f0c16b238886f5bf08991109e88eb7bd507e1e6 (diff)
clover: Fix build against LLVM SVN r203065 or newer
llvm/Linker.h was moved to llvm/Linker/Linker.h. Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/clover/llvm/invocation.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
index a9ac83b8999..a81bdf8aa73 100644
--- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
+++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
@@ -29,7 +29,11 @@
#include <clang/Basic/TargetInfo.h>
#include <llvm/Bitcode/BitstreamWriter.h>
#include <llvm/Bitcode/ReaderWriter.h>
+#if HAVE_LLVM < 0x0305
#include <llvm/Linker.h>
+#else
+#include <llvm/Linker/Linker.h>
+#endif
#if HAVE_LLVM < 0x0303
#include <llvm/DerivedTypes.h>
#include <llvm/LLVMContext.h>