Add method to delete machine code generated for a Function

llvm-svn: 17600
This commit is contained in:
Misha Brukman 2004-11-07 23:58:02 +00:00
parent 6bf36bdefb
commit 0dcaaafa0b
1 changed files with 6 additions and 0 deletions

View File

@ -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.