Implement ExecutionEngine::freeMachineCodeForFunction()

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17601 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Misha Brukman 2004-11-07 23:58:46 +00:00
parent e81aaf238c
commit 895eddfad4
3 changed files with 15 additions and 0 deletions

View File

@ -120,6 +120,10 @@ public:
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);

View File

@ -330,3 +330,9 @@ void *JIT::recompileAndRelinkFunction(Function *F) {
TJI.replaceMachineCodeForFunction(OldAddr, Addr);
return Addr;
}
/// freeMachineCodeForFunction - release machine code memory for given Function
///
void JIT::freeMachineCodeForFunction(Function *F) {
// currently a no-op
}

View File

@ -90,6 +90,11 @@ public:
///
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);