gallivm: Remove lp_func_delete_body.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 12 May 2014 15:12:32 +0000 (16:12 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 14 May 2014 10:05:00 +0000 (11:05 +0100)
Not necessary, now that we will free the whole module (hence all
function bodies) immediately after compiling.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_init.c
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
src/gallium/auxiliary/gallivm/lp_bld_misc.h

index 36d1bc54550d729be57caaaa35e877ba5014ac5e..a39c1a3ce78b1e64e6867bdb8e142082c9d414e9 100644 (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;
 }
index 8825e5468bddf11e411f3e5f303426a4bd679144..d03680fc67dd73762aef59ec064b9c98ff75835e 100644 (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,
index 847894bb0351b86d798136491aa54daf25dd4fa0..64d2a04190f0b52df421184861b8c061048475b5 100644 (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);