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:
José Fonseca
2014-05-12 16:12:32 +01:00
parent a6f5cc66db
commit b18b7781b2
3 changed files with 0 additions and 15 deletions

View File

@@ -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;
}

View File

@@ -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,

View File

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