gallivm: Add an alternative to LLVMDumpValue that works with Windows GUI apps.
[mesa.git] / src / gallium / drivers / llvmpipe / lp_state_fs.c
index 6c81114482d8d9148b7616ab63eae6443015f4e0..43016ce4c4ceffcab0fc5261e252f7c46b1e2965 100644 (file)
@@ -851,7 +851,7 @@ generate_fragment(struct llvmpipe_context *lp,
 #ifdef DEBUG
    if(LLVMVerifyFunction(function, LLVMPrintMessageAction)) {
       if (1)
-         LLVMDumpValue(function);
+         lp_debug_dump_value(function);
       abort();
    }
 #endif
@@ -862,7 +862,7 @@ generate_fragment(struct llvmpipe_context *lp,
 
    if (LP_DEBUG & DEBUG_JIT) {
       /* Print the LLVM IR to stderr */
-      LLVMDumpValue(function);
+      lp_debug_dump_value(function);
       debug_printf("\n");
    }