gallivm: Remove gallivm_free_function.
Unused. Deprecated by gallivm_free_ir(). Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user