summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2014-05-12 15:59:55 +0100
committerJosé Fonseca <[email protected]>2014-05-14 11:05:00 +0100
commita6f5cc66db2e784c5fe1ee89c990e554e6528be3 (patch)
tree59a0be3af5e6cf74ae2161103cac1e61dc8c469b /src/gallium/auxiliary/gallivm
parent0b239d9ed98f197176e2c9ccaaa3fb475144d23d (diff)
gallivm: Remove gallivm_free_function.
Unused. Deprecated by gallivm_free_ir(). Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_init.c18
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_init.h5
2 files changed, 0 insertions, 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
@@ -74,11 +74,6 @@ 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);