clover: Fix build against LLVM SVN r203065 or newer
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 7 Mar 2014 01:49:30 +0000 (10:49 +0900)
committerMichel Dänzer <michel@daenzer.net>
Fri, 7 Mar 2014 02:12:12 +0000 (11:12 +0900)
llvm/Linker.h was moved to llvm/Linker/Linker.h.

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/state_trackers/clover/llvm/invocation.cpp

index a9ac83b8999c6bb2cca651ec20936cd548a61e58..a81bdf8aa73a858235ee8c6432b24c02f71b9ce9 100644 (file)
 #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>