return getPointerToFunction(F);
}
+ /// freeMachineCodeForFunction - The interpreter does not generate any code.
+ ///
+ void freeMachineCodeForFunction(Function *F) { }
+
// Methods used to execute code:
// Place a call on the stack
void callFunction(Function *F, const std::vector<GenericValue> &ArgVals);
TJI.replaceMachineCodeForFunction(OldAddr, Addr);
return Addr;
}
+
+/// freeMachineCodeForFunction - release machine code memory for given Function
+///
+void JIT::freeMachineCodeForFunction(Function *F) {
+ // currently a no-op
+}
///
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);