gallivm: Remove gallivm_free_function.

Unused.  Deprecated by gallivm_free_ir().

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
José Fonseca
2014-05-12 15:59:55 +01:00
parent 0b239d9ed9
commit a6f5cc66db
2 changed files with 0 additions and 23 deletions

View 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
}

View 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);