diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2004-11-07 23:58:02 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2004-11-07 23:58:02 +0000 |
commit | e81aaf238c32dbc34274ede09fb16aa78dae9f53 (patch) | |
tree | 3459b5df06152f759a12387382f37e05b42d46f7 /include | |
parent | 4b8f82fbe6c76f0bed5f424f8bcc28d6a6ff6b04 (diff) | |
download | external_llvm-e81aaf238c32dbc34274ede09fb16aa78dae9f53.zip external_llvm-e81aaf238c32dbc34274ede09fb16aa78dae9f53.tar.gz external_llvm-e81aaf238c32dbc34274ede09fb16aa78dae9f53.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ExecutionEngine/ExecutionEngine.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h index 884d6b2..d224516 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. |