Not necessary, now that we will free the whole module (hence all
function bodies) immediately after compiling.
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
lp_profile(func, code);
#endif
- /* Free the function body to save memory */
- lp_func_delete_body(func);
-
return jit_func;
}
}
-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,
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);