llvmpipe: predicate LLVMDumpModule() on DEBUG_JIT
authorBrian Paul <brianp@vmware.com>
Wed, 5 May 2010 02:46:04 +0000 (20:46 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 5 May 2010 02:46:27 +0000 (20:46 -0600)
src/gallium/drivers/llvmpipe/lp_jit.c

index 30e206a2b42001d428ff5ed35fc2475d506766dd..b10ee7a463a3d1f258051b5db03ca2ef30208472 100644 (file)
@@ -151,9 +151,8 @@ lp_jit_init_globals(struct llvmpipe_screen *screen)
       screen->context_ptr_type = LLVMPointerType(context_type, 0);
    }
 
-#ifdef DEBUG
-   LLVMDumpModule(screen->module);
-#endif
+   if (LP_DEBUG & DEBUG_JIT)
+      LLVMDumpModule(screen->module);
 }