Mesa (master): gallivm: Fix build with llvm 2.6 on 32bit platforms

Jose Fonseca jrfonseca at kemper.freedesktop.org
Sun Mar 13 19:50:06 UTC 2011


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Sun Mar 13 19:49:21 2011 +0000

gallivm: Fix build with llvm 2.6 on 32bit platforms

---

 src/gallium/auxiliary/gallivm/lp_bld_debug.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index 49388aa..bb2c82f 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
@@ -111,6 +111,7 @@ lp_debug_dump_value(LLVMValueRef value)
 }
 
 
+#if HAVE_LLVM >= 0x0207
 /*
  * MemoryObject wrapper around a buffer of memory, to be used by MC
  * disassembler.
@@ -145,6 +146,7 @@ public:
       return 0;
    }
 };
+#endif /* HAVE_LLVM >= 0x0207 */
 
 
 /*
@@ -348,8 +350,8 @@ lp_disassemble(const void* func)
    }
 
    debug_printf("\n");
-#else
+#else /* HAVE_LLVM < 0x0207 */
    (void)func;
-#endif
+#endif /* HAVE_LLVM < 0x0207 */
 }
 




More information about the mesa-commit mailing list