mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
gallivm: Remove lp_func_delete_body.
Not necessary, now that we will free the whole module (hence all function bodies) immediately after compiling. Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
a6f5cc66db
commit
b18b7781b2
3 changed files with 0 additions and 15 deletions
|
|
@ -605,8 +605,5 @@ gallivm_jit_function(struct gallivm_state *gallivm,
|
|||
lp_profile(func, code);
|
||||
#endif
|
||||
|
||||
/* Free the function body to save memory */
|
||||
lp_func_delete_body(func);
|
||||
|
||||
return jit_func;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,14 +117,6 @@ lp_set_target_options(void)
|
|||
}
|
||||
|
||||
|
||||
extern "C" void
|
||||
lp_func_delete_body(LLVMValueRef FF)
|
||||
{
|
||||
llvm::Function *func = llvm::unwrap<llvm::Function>(FF);
|
||||
func->deleteBody();
|
||||
}
|
||||
|
||||
|
||||
extern "C"
|
||||
LLVMValueRef
|
||||
lp_build_load_volatile(LLVMBuilderRef B, LLVMValueRef PointerVal,
|
||||
|
|
|
|||
|
|
@ -46,10 +46,6 @@ extern void
|
|||
lp_set_target_options(void);
|
||||
|
||||
|
||||
extern void
|
||||
lp_func_delete_body(LLVMValueRef func);
|
||||
|
||||
|
||||
extern LLVMValueRef
|
||||
lp_build_load_volatile(LLVMBuilderRef B, LLVMValueRef PointerVal,
|
||||
const char *Name);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue