gallivm: fix build with LLVM 3.0svn
authorTobias Droste <tdroste@gmx.de>
Sun, 4 Sep 2011 01:14:23 +0000 (03:14 +0200)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 5 Sep 2011 17:49:11 +0000 (18:49 +0100)
LLVM 3.0svn moved TargetRegistry.h and TargetSelect.h.
See revision 138450 of LLVM.

Signed-off-by: Tobias Droste <tdroste@gmx.de>
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp

index e252607f97fb5d83aa9c96d2805b5cadcde53d3c..401e0e236c537b4e4524c8b0bfbcbd1ccbbbe109 100644 (file)
 
 #include <llvm-c/Core.h>
 #include <llvm/Target/TargetMachine.h>
-#include <llvm/Target/TargetRegistry.h>
-#include <llvm/Target/TargetSelect.h>
 #include <llvm/Target/TargetInstrInfo.h>
 #include <llvm/Support/raw_ostream.h>
 #include <llvm/Support/MemoryObject.h>
 
+#if HAVE_LLVM >= 0x0300
+#include <llvm/Support/TargetRegistry.h>
+#include <llvm/Support/TargetSelect.h>
+#else /* HAVE_LLVM < 0x0300 */
+#include <llvm/Target/TargetRegistry.h>
+#include <llvm/Target/TargetSelect.h>
+#endif /* HAVE_LLVM < 0x0300 */
+
 #if HAVE_LLVM >= 0x0209
 #include <llvm/Support/Host.h>
-#else
+#else /* HAVE_LLVM < 0x0209 */
 #include <llvm/System/Host.h>
-#endif
+#endif /* HAVE_LLVM < 0x0209 */
 
 #if HAVE_LLVM >= 0x0207
 #include <llvm/MC/MCDisassembler.h>