[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/JIT.cpp JIT.h

Misha Brukman brukman at cs.uiuc.edu
Sun Nov 7 15:58:56 PST 2004



Changes in directory llvm/lib/ExecutionEngine/JIT:

JIT.cpp updated: 1.45 -> 1.46
JIT.h updated: 1.23 -> 1.24
---
Log message:

Implement ExecutionEngine::freeMachineCodeForFunction()


---
Diffs of the changes:  (+11 -0)

Index: llvm/lib/ExecutionEngine/JIT/JIT.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.45 llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.46
--- llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.45	Fri Oct 22 18:35:57 2004
+++ llvm/lib/ExecutionEngine/JIT/JIT.cpp	Sun Nov  7 17:58:46 2004
@@ -330,3 +330,9 @@
   TJI.replaceMachineCodeForFunction(OldAddr, Addr);
   return Addr;
 }
+
+/// freeMachineCodeForFunction - release machine code memory for given Function
+///
+void JIT::freeMachineCodeForFunction(Function *F) {
+  // currently a no-op
+}


Index: llvm/lib/ExecutionEngine/JIT/JIT.h
diff -u llvm/lib/ExecutionEngine/JIT/JIT.h:1.23 llvm/lib/ExecutionEngine/JIT/JIT.h:1.24
--- llvm/lib/ExecutionEngine/JIT/JIT.h:1.23	Sun Dec 28 03:44:37 2003
+++ llvm/lib/ExecutionEngine/JIT/JIT.h	Sun Nov  7 17:58:46 2004
@@ -90,6 +90,11 @@
   ///
   void *recompileAndRelinkFunction(Function *F);
 
+  /// freeMachineCodeForFunction - deallocate memory used to code-generate this
+  /// Function.
+  ///
+  void freeMachineCodeForFunction(Function *F);
+
 private:
   static MachineCodeEmitter *createEmitter(JIT &J);
   void runJITOnFunction (Function *F);






More information about the llvm-commits mailing list