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 bb2c82fe0eddb5cb3c67525d223c3b560db1498c..1f24cb6f572202551c31e098d98ebe874f565c8b 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>