gallivm: Fix build with llvm-2.9.
authorVinson Lee <vlee@vmware.com>
Fri, 25 Mar 2011 19:47:06 +0000 (12:47 -0700)
committerVinson Lee <vlee@vmware.com>
Fri, 25 Mar 2011 19:47:06 +0000 (12:47 -0700)
In llvm-2.9, the header file llvm/System/Host.h has been moved to
llvm/Support/Host.h.

src/gallium/auxiliary/gallivm/lp_bld_debug.cpp

index bb2c82f..1f24cb6 100644 (file)
 #include <llvm/Target/TargetInstrInfo.h>
 #include <llvm/Support/raw_ostream.h>
 #include <llvm/Support/MemoryObject.h>
+
+#if HAVE_LLVM >= 0x0209
+#include <llvm/Support/Host.h>
+#else
 #include <llvm/System/Host.h>
+#endif
 
 #if HAVE_LLVM >= 0x0207
 #include <llvm/MC/MCDisassembler.h>