mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-29 14:42:01 +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…
x
Reference in New Issue
Block a user