Mesa (master): gallivm: Fix build since llvm r233411

Jan Vesely jvesely at kemper.freedesktop.org
Fri Mar 27 22:57:39 UTC 2015


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

Author: Jan Vesely <jan.vesely at rutgers.edu>
Date:   Fri Mar 27 18:45:23 2015 -0400

gallivm: Fix build since llvm r233411

Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>

---

 src/gallium/auxiliary/gallivm/lp_bld_debug.cpp |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index bf6268b..d4d453d 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
@@ -322,7 +322,11 @@ disassemble(const void* func, llvm::raw_ostream & Out)
       /*
        * Print the instruction.
        */
+#if HAVE_LLVM >= 0x0307
+      Printer->printInst(&Inst, Out, "", *STI);
+#else
       Printer->printInst(&Inst, Out, "");
+#endif
 
       /*
        * Advance.




More information about the mesa-commit mailing list