Mesa (master): gallivm: Fix build with llvm-2.9.

Vinson Lee vlee at kemper.freedesktop.org
Fri Mar 25 19:48:52 UTC 2011


Module: Mesa
Branch: master
Commit: eb0dd370945b9e3f5eb548a1a4a8184bb0e604fc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=eb0dd370945b9e3f5eb548a1a4a8184bb0e604fc

Author: Vinson Lee <vlee at vmware.com>
Date:   Fri Mar 25 12:47:06 2011 -0700

gallivm: Fix build with llvm-2.9.

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 |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index bb2c82f..1f24cb6 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
@@ -32,7 +32,12 @@
 #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>




More information about the mesa-commit mailing list