gallivm: Fix build since llvm r233411
authorJan Vesely <jan.vesely@rutgers.edu>
Fri, 27 Mar 2015 22:45:23 +0000 (18:45 -0400)
committerJan Vesely <jan.vesely@rutgers.edu>
Fri, 27 Mar 2015 22:57:02 +0000 (18:57 -0400)
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp

index bf6268b3360e9bfb5f2b7a7d7cf580494f0d7b09..d4d453d26157961d317598ac675e868a24142e61 100644 (file)
@@ -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.