summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-05-04 20:46:04 -0600
committerBrian Paul <[email protected]>2010-05-04 20:46:27 -0600
commit1169d8619a13b231434e3550d3726cc68d1c2b17 (patch)
tree5b72bc3b698e13c84268dede291f9b8c2bffab98 /src
parentb2e343daab4a7621e2bd9bc4b2cbd2709370089c (diff)
llvmpipe: predicate LLVMDumpModule() on DEBUG_JIT
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_jit.c5
1 files changed, 2 insertions, 3 deletions
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);
}