Add method to delete machine code generated for a Function
authorMisha Brukman <brukman+llvm@gmail.com>
Sun, 7 Nov 2004 23:58:02 +0000 (23:58 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Sun, 7 Nov 2004 23:58:02 +0000 (23:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17600 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/ExecutionEngine.h

index 884d6b2df7ba94a277849db3bace7843b5540b2c..d2245165a9e1acd5921b0e96b83949f65f3a7822 100644 (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.