Mesa (master): llvmpipe: predicate LLVMDumpModule() on DEBUG_JIT
Brian Paul
brianp at kemper.freedesktop.org
Wed May 5 02:46:39 UTC 2010
Module: Mesa
Branch: master
Commit: 1169d8619a13b231434e3550d3726cc68d1c2b17
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1169d8619a13b231434e3550d3726cc68d1c2b17
Author: Brian Paul <brianp at vmware.com>
Date: Tue May 4 20:46:04 2010 -0600
llvmpipe: predicate LLVMDumpModule() on DEBUG_JIT
---
src/gallium/drivers/llvmpipe/lp_jit.c | 5 ++---
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 30e206a..b10ee7a 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);
}
More information about the mesa-commit
mailing list