From: Brian Paul Date: Wed, 5 May 2010 02:46:04 +0000 (-0600) Subject: llvmpipe: predicate LLVMDumpModule() on DEBUG_JIT X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1169d8619a13b231434e3550d3726cc68d1c2b17;p=mesa.git llvmpipe: predicate LLVMDumpModule() on DEBUG_JIT --- diff --git a/src/gallium/drivers/llvmpipe/lp_jit.c b/src/gallium/drivers/llvmpipe/lp_jit.c index 30e206a2b42..b10ee7a463a 100644 --- a/src/gallium/drivers/llvmpipe/lp_jit.c +++ b/src/gallium/drivers/llvmpipe/lp_jit.c @@ -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); }