From a6f5cc66db2e784c5fe1ee89c990e554e6528be3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Mon, 12 May 2014 15:59:55 +0100 Subject: [PATCH] gallivm: Remove gallivm_free_function. Unused. Deprecated by gallivm_free_ir(). Reviewed-by: Roland Scheidegger --- src/gallium/auxiliary/gallivm/lp_bld_init.c | 18 ------------------ src/gallium/auxiliary/gallivm/lp_bld_init.h | 5 ----- 2 files changed, 23 deletions(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.c b/src/gallium/auxiliary/gallivm/lp_bld_init.c index 6feec706bdd..36d1bc54550 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_init.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c @@ -610,21 +610,3 @@ gallivm_jit_function(struct gallivm_state *gallivm, return jit_func; } - - -/** - * Free the function (and its machine code). - */ -void -gallivm_free_function(struct gallivm_state *gallivm, - LLVMValueRef func, - const void *code) -{ -#if !USE_MCJIT - if (code) { - LLVMFreeMachineCodeForFunction(gallivm->engine, func); - } - - LLVMDeleteFunction(func); -#endif -} diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.h b/src/gallium/auxiliary/gallivm/lp_bld_init.h index b11e9864839..464bb832929 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_init.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_init.h @@ -73,11 +73,6 @@ func_pointer gallivm_jit_function(struct gallivm_state *gallivm, LLVMValueRef func); -void -gallivm_free_function(struct gallivm_state *gallivm, - LLVMValueRef func, - const void * code); - void lp_set_load_alignment(LLVMValueRef Inst, unsigned Align); -- 2.30.2