mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
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:
parent
e81aaf238c
commit
895eddfad4
@ -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);
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user