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 6feec706bdd0bb024d970d478bbbc30ccbcadab4..36d1bc54550d729be57caaaa35e877ba5014ac5e 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 b11e9864839685f4f84c55cfdb7fc5077362e37a..464bb8329298c493750ad45ae0f0bcb95908f6f1 100644 (file)
@@ -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);