From: Misha Brukman Date: Sun, 7 Nov 2004 23:58:02 +0000 (+0000) Subject: Add method to delete machine code generated for a Function X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e81aaf238c32dbc34274ede09fb16aa78dae9f53;p=oota-llvm.git Add method to delete machine code generated for a Function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17600 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h index 884d6b2df7b..d2245165a9e 100644 --- a/include/llvm/ExecutionEngine/ExecutionEngine.h +++ b/include/llvm/ExecutionEngine/ExecutionEngine.h @@ -138,6 +138,12 @@ public: /// virtual void *recompileAndRelinkFunction(Function *F) = 0; + /// freeMachineCodeForFunction - Release memory in the ExecutionEngine + /// corresponding to the machine code emitted to execute this function, useful + /// for garbage-collecting generated code. + /// + virtual void freeMachineCodeForFunction(Function *F) = 0; + /// getOrEmitGlobalVariable - Return the address of the specified global /// variable, possibly emitting it to memory if needed. This is used by the /// Emitter.