From e81aaf238c32dbc34274ede09fb16aa78dae9f53 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Sun, 7 Nov 2004 23:58:02 +0000 Subject: 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 --- include/llvm/ExecutionEngine/ExecutionEngine.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/llvm/ExecutionEngine') diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h index 884d6b2df7..d2245165a9 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. -- cgit v1.2.3