gallivm: Remove gallivm_free_function.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 12 May 2014 14:59:55 +0000 (15:59 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 14 May 2014 10:05:00 +0000 (11:05 +0100)
Unused.  Deprecated by gallivm_free_ir().

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_init.c
src/gallium/auxiliary/gallivm/lp_bld_init.h

index 6feec70..36d1bc5 100644 (file)
@@ -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
-}
index b11e986..464bb83 100644 (file)
@@ -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);