projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gallivm: rework debug printf hook to use global mapping.
[mesa.git]
/
src
/
gallium
/
auxiliary
/
gallivm
/
lp_bld_init.c
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_init.c
b/src/gallium/auxiliary/gallivm/lp_bld_init.c
index e3fd26cd2ec39d90121b8ef50f3f243e156654f5..ce522806669672e063866a807883e4ac183e9e99 100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_init.c
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_init.c
@@
-643,6
+643,9
@@
gallivm_compile_module(struct gallivm_state *gallivm)
++gallivm->compiled;
+ if (gallivm->debug_printf_hook)
+ LLVMAddGlobalMapping(gallivm->engine, gallivm->debug_printf_hook, debug_printf);
+
if (gallivm_debug & GALLIVM_DEBUG_ASM) {
LLVMValueRef llvm_func = LLVMGetFirstFunction(gallivm->module);