[Mesa-dev] [PATCH 11/12] gallivm: Remove gallivm_free_function.

jfonseca at vmware.com jfonseca at vmware.com
Tue May 13 05:01:17 PDT 2014


From: José Fonseca <jfonseca at vmware.com>

Unused.  Deprecated by gallivm_free_ir().
---
 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 6feec70..36d1bc5 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 b11e986..464bb83 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);
 
-- 
1.9.1



More information about the mesa-dev mailing list